mirror of git://git.gnupg.org/gnupg.git
gpg: Fix comparison.
* g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
not one or fewer.
--
Cherry-picked master commit of:
1ed21eee79
Signed-off-by: Neal H. Walfield <neal@walfield.org>
This commit is contained in:
parent
005e951714
commit
14e5435afb
|
@ -2746,7 +2746,7 @@ literal_name (const char *option, int argc, char *argv[], void *cookie)
|
|||
{
|
||||
struct litinfo *li = cookie;
|
||||
|
||||
if (argc <= 1)
|
||||
if (argc <= 0)
|
||||
log_fatal ("Usage: %s NAME\n", option);
|
||||
|
||||
if (strlen (argv[0]) > 255)
|
||||
|
|
Loading…
Reference in New Issue