1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 03:55:04 +03:00

nanohttp: Fix another stdout file descriptor

This commit is contained in:
Nick Wellnhofer 2024-10-23 16:46:03 +02:00
parent 607ada90b8
commit 944e5fe8df

View File

@ -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) {