scd: Suppress gcc warning about possible uninitialized use.
authorWerner Koch <wk@gnupg.org>
Fri, 30 Aug 2013 08:28:26 +0000 (10:28 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 30 Aug 2013 08:28:26 +0000 (10:28 +0200)
* scd/app-nks.c (parse_pwidstr): Always init r_pwid.

Signed-off-by: Werner Koch <wk@gnupg.org>
scd/app-nks.c

index c83217f..19a33ed 100644 (file)
@@ -1125,7 +1125,10 @@ parse_pwidstr (const char *pwidstr, int new_mode, int *r_sigg, int *r_pwid)
                   "for the key to create qualified signatures."));
     }
   else
-    desc = NULL;
+    {
+      *r_pwid = 0; /* Only to avoid gcc warning in calling function.  */
+      desc = NULL; /* Error.  */
+    }
 
   return desc;
 }