mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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."));
|
"for the key to create qualified signatures."));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
desc = NULL;
|
{
|
||||||
|
*r_pwid = 0; /* Only to avoid gcc warning in calling function. */
|
||||||
|
desc = NULL; /* Error. */
|
||||||
|
}
|
||||||
|
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user