Home GnuPG

core: Skip cmdline parsing for no or an empty argv.

Description

core: Skip cmdline parsing for no or an empty argv.

* src/argparse.c (_gpgrt_argparser): Allow for empty argv.  Also fix
memory leak.

This comes handy when rereading option files on SIGHUP, for example in
gpg-agent. There is no need to provide a dummy array.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 20 2020, 2:52 PM
Parents
rE46b3749997da: core: More fixes for the new option/argument parser.
Branches
Unknown
Tags
Unknown