commit 096366bc8dc4a0218422fee3ed7716e406bf5697 parent 21301645b3c52b55d6636662066b01919716f102 Author: Nihal Jere <nihal@nihaljere.xyz> Date: Mon, 28 Feb 2022 19:43:53 -0600 waycopy: close stdout immediately, since it is unused Diffstat:
M | waycopy.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/waycopy.c b/waycopy.c @@ -42,6 +42,7 @@ const char *const tempname = "/waycopy-buffer-XXXXXX"; int main(int argc, char *argv[]) { + close(STDOUT_FILENO); argv0 = argv[0]; options.type = "text/plain";