card: Intialize pointer to avoid double free

* tools/gpg-card.c (cmd_salut): Initialize data pointer

--

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
GnuPG-bug-id: 5393
This commit is contained in:
Jakub Jelen 2021-04-13 14:50:13 +02:00 committed by Werner Koch
parent 27e7bde12e
commit 98c52aeb31
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 0 deletions

View File

@ -1785,6 +1785,7 @@ cmd_salut (card_info_t info, const char *argstr)
{
tty_printf (_("Error: invalid response.\n"));
xfree (data);
data = NULL;
goto again;
}
}