mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Silence warnings found by static analyzer.
* g10/keyedit.c (change_passphrase): Remove useless init of ANY. (keyedit_quick_adduid): Remove useless setting of ERR. * g10/parse-packet.c (parse_key): Remove PKTLEN from condition because it has been checked before the loop. (parse_plaintext): Remove useless init of PKTLEN. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
7990586828
commit
09accc0e3d
2 changed files with 3 additions and 4 deletions
|
@ -2428,7 +2428,7 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
|
|||
err = gpg_error (GPG_ERR_INV_PACKET);
|
||||
goto leave;
|
||||
}
|
||||
for (i = 0; i < ski->ivlen && pktlen; i++, pktlen--)
|
||||
for (i = 0; i < ski->ivlen; i++, pktlen--)
|
||||
temp[i] = iobuf_get_noeof (inp);
|
||||
if (list_mode)
|
||||
{
|
||||
|
@ -2862,7 +2862,6 @@ parse_plaintext (IOBUF inp, int pkttype, unsigned long pktlen,
|
|||
pktlen -= 4;
|
||||
pt->len = pktlen;
|
||||
pt->buf = inp;
|
||||
pktlen = 0;
|
||||
|
||||
if (list_mode)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue