mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-23 21:59:57 +01:00
g10: Avoid undefined behavior.
* g10/trust.c (clean_one_uid): Avoid a computation involving an uninitialized value. -- Found using the Clang Static Analyzer. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
6a37b45a7f
commit
52f7f195b1
@ -704,7 +704,7 @@ void
|
||||
clean_one_uid (kbnode_t keyblock, kbnode_t uidnode, int noisy, int self_only,
|
||||
int *uids_cleaned, int *sigs_cleaned)
|
||||
{
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
|
||||
assert (keyblock->pkt->pkttype==PKT_PUBLIC_KEY);
|
||||
assert (uidnode->pkt->pkttype==PKT_USER_ID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user