Fix two unused/possible-uninitialized var warnings.
authorWerner Koch <wk@gnupg.org>
Thu, 8 Oct 2015 12:58:26 +0000 (14:58 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 8 Oct 2015 12:58:26 +0000 (14:58 +0200)
--

common/mkdir_p.c
g10/keyedit.c

index 6a54600..53c3f0f 100644 (file)
@@ -36,7 +36,7 @@ amkdir_p (char **directory_components)
   int count;
   char **dirs;
   int i;
-  int rc;
+  int rc = 0;
 
   for (count = 0; directory_components[count]; count ++)
     ;
index 143c748..4803f9e 100644 (file)
@@ -293,7 +293,6 @@ print_and_check_one_sig (KBNODE keyblock, KBNODE node,
         {
           PKT_public_key *pk = keyblock->pkt->pkt.public_key;
           const unsigned char *s;
-          u32 expire;
 
           s = parse_sig_subpkt (sig->hashed, SIGSUBPKT_PRIMARY_UID, NULL);
           if (s && *s)