Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 944e5fe

Browse files
committed
nanohttp: Fix another stdout file descriptor
1 parent 607ada9 commit 944e5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanohttp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ xmlNanoHTTPSave(void *ctxt, const char *filename) {
16271627
if ((ctxt == NULL) || (filename == NULL)) return(-1);
16281628

16291629
if (!strcmp(filename, "-"))
1630-
fd = 0;
1630+
fd = 1; /* STDOUT_FILENO */
16311631
else {
16321632
fd = open(filename, O_CREAT | O_WRONLY, 0666);
16331633
if (fd < 0) {

0 commit comments

Comments
 (0)