mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-25 10:50:08 +03:00
parent
b7c0f9d2dd
commit
607ada90b8
@ -1581,7 +1581,7 @@ xmlNanoHTTPFetch(const char *URL, const char *filename, char **contentType) {
|
||||
if (ctxt == NULL) return(-1);
|
||||
|
||||
if (!strcmp(filename, "-"))
|
||||
fd = 0;
|
||||
fd = 1; /* STDOUT_FILENO */
|
||||
else {
|
||||
fd = open(filename, O_CREAT | O_WRONLY, 00644);
|
||||
if (fd < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user