mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01: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
@ -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…
x
Reference in New Issue
Block a user