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:
parent
213c4bc1eb
commit
19a4c4daa2
@ -234,7 +234,7 @@ my_spawn (assuan_context_t ctx, pid_t *r_pid, const char *name,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
logger_fd = strtol (argv[loc], &tail, 10);
|
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;
|
err = GPG_ERR_INV_ARG;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user