diff options
author | Neal H. Walfield <neal@g10code.com> | 2017-10-06 11:51:39 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2017-10-06 11:53:51 +0200 |
commit | 1ed21eee79749b976b4a935f2279b162634e9c5e (patch) | |
tree | 80722f9718604b8c41b8ef9e0485fab3ec4ca505 /g10/gpgcompose.c | |
parent | doc: Make --check-sigs more prominent. (diff) | |
download | gnupg2-1ed21eee79749b976b4a935f2279b162634e9c5e.tar.xz gnupg2-1ed21eee79749b976b4a935f2279b162634e9c5e.zip |
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>
Diffstat (limited to 'g10/gpgcompose.c')
-rw-r--r-- | g10/gpgcompose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/gpgcompose.c b/g10/gpgcompose.c index 2b42bfbf9..8c156d279 100644 --- a/g10/gpgcompose.c +++ b/g10/gpgcompose.c @@ -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) |