common/exechelp: Fix pipe creation.
authorJustus Winter <justus@g10code.com>
Tue, 19 Jan 2016 11:45:04 +0000 (12:45 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 23 Feb 2016 10:58:20 +0000 (11:58 +0100)
* common/exechelp-w32.c (gnupg_spawn_process): Fix the creation of the
input pipe.

Signed-off-by: Justus Winter <justus@g10code.com>
common/exechelp-w32.c

index bc9b5b4..7439c0b 100644 (file)
@@ -383,7 +383,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
     *r_errfp = NULL;
   *pid = (pid_t)(-1); /* Always required.  */
 
-  if (infp)
+  if (r_infp)
     {
       if (create_inheritable_pipe (inpipe, 0))
         {