diff options
author | Neal H. Walfield <[email protected]> | 2017-10-06 09:51:39 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-02-19 06:53:12 +0000 |
commit | 14e5435afb50dc9a9243ff3e0aed5030beba2914 (patch) | |
tree | 4a6493adf388b8e2f6a2566ff48ed1a50eef3d35 /g10/gpgcompose.c | |
parent | agent: Fix cancellation handling for scdaemon. (diff) | |
download | gnupg-14e5435afb50dc9a9243ff3e0aed5030beba2914.tar.gz gnupg-14e5435afb50dc9a9243ff3e0aed5030beba2914.zip |
gpg: Fix comparison.
* g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
not one or fewer.
--
Cherry-picked master commit of:
1ed21eee79749b976b4a935f2279b162634e9c5e
Signed-off-by: Neal H. Walfield <[email protected]>
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 430538ef7..226f7938f 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) |