tools: Fix error handling for gpg-pair-tool.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Jun 2019 02:29:27 +0000 (11:29 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Jun 2019 02:29:27 +0000 (11:29 +0900)
* tools/gpg-pair-tool.c (read_message): Initialize ERR.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tools/gpg-pair-tool.c

index 347b29d..9a781de 100644 (file)
@@ -976,7 +976,7 @@ read_message (unsigned char **r_msg, size_t *r_msglen, int *r_msgtype,
 static gpg_error_t
 display_sas (const unsigned char *hash, size_t hashlen, int wait)
 {
-  gpg_error_t err;
+  gpg_error_t err = 0;
   unsigned long sas = 0;
   char sasbuf[12];