1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

nanohttp: Fix stdout file descriptor

Fixes #813.
This commit is contained in:
Nick Wellnhofer 2024-10-23 14:19:01 +02:00
parent b7c0f9d2dd
commit 607ada90b8

View File

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