aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-pair-tool.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-06-20 02:29:27 +0000
committerNIIBE Yutaka <[email protected]>2019-06-20 02:29:27 +0000
commitd5287f43fd4def68901519a4c1d471b81ee86ed0 (patch)
tree3e8b2f966ece3b7c17cecfb429ee5d29b210175c /tools/gpg-pair-tool.c
parentscd: Split data structures into app and card related objects. (diff)
downloadgnupg-d5287f43fd4def68901519a4c1d471b81ee86ed0.tar.gz
gnupg-d5287f43fd4def68901519a4c1d471b81ee86ed0.zip
tools: Fix error handling for gpg-pair-tool.
* tools/gpg-pair-tool.c (read_message): Initialize ERR. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tools/gpg-pair-tool.c')
-rw-r--r--tools/gpg-pair-tool.c2
1 files changed, 1 insertions, 1 deletions
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];