mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Fix comparison.
* g10/gpgcompose.c (literal_name): Complain if passed zero arguments, not one or fewer. Signed-off-by: Neal H. Walfield <neal@walfield.org>
This commit is contained in:
parent
98c260e057
commit
1ed21eee79
@ -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…
x
Reference in New Issue
Block a user