From d5287f43fd4def68901519a4c1d471b81ee86ed0 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 20 Jun 2019 11:29:27 +0900 Subject: [PATCH] tools: Fix error handling for gpg-pair-tool. * tools/gpg-pair-tool.c (read_message): Initialize ERR. Signed-off-by: NIIBE Yutaka --- tools/gpg-pair-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gpg-pair-tool.c b/tools/gpg-pair-tool.c index 347b29d24..9a781def1 100644 --- a/tools/gpg-pair-tool.c +++ b/tools/gpg-pair-tool.c @@ -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];