core: Fix assuan logger-fd hack for windows

* src/assuan-support.c (my_spawn): Zero is a perfectly fine fd.
This commit is contained in:
Andre Heinecke 2019-03-27 16:12:38 +01:00
parent 213c4bc1eb
commit 19a4c4daa2
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View 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;