core: Fix assuan logger-fd hack for windows
authorAndre Heinecke <aheinecke@gnupg.org>
Wed, 27 Mar 2019 15:12:38 +0000 (16:12 +0100)
committerAndre Heinecke <aheinecke@gnupg.org>
Wed, 27 Mar 2019 15:12:38 +0000 (16:12 +0100)
* src/assuan-support.c (my_spawn): Zero is a perfectly fine fd.

src/assuan-support.c

index 925aeba..09db329 100644 (file)
@@ -234,7 +234,7 @@ my_spawn (assuan_context_t ctx, pid_t *r_pid, const char *name,
                   break;
                 }
               logger_fd = strtol (argv[loc], &tail, 10);
-              if (tail == argv[loc] || logger_fd <= 0)
+              if (tail == argv[loc] || logger_fd < 0)
                 {
                   err = GPG_ERR_INV_ARG;
                   break;