tools: Improve error handling.
authorJustus Winter <justus@g10code.com>
Thu, 6 Oct 2016 12:17:03 +0000 (14:17 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 6 Oct 2016 12:17:03 +0000 (14:17 +0200)
* tools/gpg-wks-server.c (copy_key_as_binary): Initialize 'argv'.

Signed-off-by: Justus Winter <justus@g10code.com>
tools/gpg-wks-server.c

index 408e3f5..60505ab 100644 (file)
@@ -519,7 +519,7 @@ copy_key_as_binary (const char *keyfile, const char *outfile,
 {
   gpg_error_t err;
   ccparray_t ccp;
-  const char **argv;
+  const char **argv = NULL;
   char *filterexp = NULL;
 
   if (addrspec)