Home GnuPG
Diffusion GnuPG 0b52f837801c

wks: Make sure that ERR is always initialized.

Description

wks: Make sure that ERR is always initialized.

* tools/wks-util.c (install_key_from_spec_file): Initialize ERR in case
the loop is never run.

This is part of

(cherry picked from commit 021c27510b52f86a95ae70b5f4ed5d2c3886c3e8)

  • GnuPG-bug-id: T7129
  • Co-authored-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
wernerAuthored on May 28 2024, 1:54 PM
Parents
rG234e9db3c324: gpg: Avoid a double free on error in the key generation.
Branches
Unknown
Tags
Unknown
Tasks
T7129: Fix static reports by static analyser in gnugp