Home GnuPG
Diffusion GnuPG 95415bdec77a

agent: Remove useless conditions.
95415bdec77aUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

agent: Remove useless conditions.

* agent/genkey.c (agent_ask_new_passphrase): Remove useless condition.
* agent/command-ssh.c (ssh_identity_register): Ditto.

Detected by Stack 0.3:

bug: anti-simplify
model: |
  %tobool22 = icmp ne i8* %arraydecay21, null, !dbg !717
  -->  true
stack:
  - /home/wk/s/gnupg/agent/genkey.c:385:0
ncore: 1
core:
  - /home/wk/s/gnupg/agent/genkey.c:362:0
    - pointer overflow

bug: anti-simplify
model: |
  %tobool35 = icmp ne i8* %arraydecay34, null, !dbg !1053
  -->  true
stack:
  - /home/wk/s/gnupg/agent/command-ssh.c:3120:0
ncore: 1
core:
  - /home/wk/s/gnupg/agent/command-ssh.c:3103:0
    - pointer overflow

Details

Provenance
wernerAuthored on Mar 15 2015, 12:57 PM
Parents
rGc59b410cf1d5: gpg: Remove useless condition.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG95415bdec77a: agent: Remove useless conditions. (authored by Werner Koch <wk@gnupg.org>).Mar 15 2015, 12:59 PM