mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: Suppress gcc warning about possible uninitialized use.
* scd/app-nks.c (parse_pwidstr): Always init r_pwid. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
4c3b35b067
commit
244587ea41
1 changed files with 4 additions and 1 deletions
|
@ -1125,7 +1125,10 @@ parse_pwidstr (const char *pwidstr, int new_mode, int *r_sigg, int *r_pwid)
|
|||
"for the key to create qualified signatures."));
|
||||
}
|
||||
else
|
||||
desc = NULL;
|
||||
{
|
||||
*r_pwid = 0; /* Only to avoid gcc warning in calling function. */
|
||||
desc = NULL; /* Error. */
|
||||
}
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue