mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-21 18:03:34 +03:00
nanohttp: Fix another stdout file descriptor
This commit is contained in:
parent
607ada90b8
commit
944e5fe8df
@ -1627,7 +1627,7 @@ xmlNanoHTTPSave(void *ctxt, const char *filename) {
|
||||
if ((ctxt == NULL) || (filename == NULL)) return(-1);
|
||||
|
||||
if (!strcmp(filename, "-"))
|
||||
fd = 0;
|
||||
fd = 1; /* STDOUT_FILENO */
|
||||
else {
|
||||
fd = open(filename, O_CREAT | O_WRONLY, 0666);
|
||||
if (fd < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user