From fccd15b239def2160abf142a1fad88f6336282df Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Wed, 22 Mar 2023 18:12:46 +0000 Subject: [PATCH] Don't unconditionally close standard input; it may have been used and closed before. If it was never used, it was never opened. --- tools/src/http.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/src/http.c b/tools/src/http.c index e42b8a2..b12b8fe 100644 --- a/tools/src/http.c +++ b/tools/src/http.c @@ -223,7 +223,6 @@ main(int argc, char **argv) StreamClose(StreamStdout()); StreamClose(StreamStderr()); - StreamClose(StreamStdin()); return !(res == HTTP_OK); }