[git] GnuPG - branch, master, updated. gnupg-2.2.1-22-g1ed21ee

by Neal H. Walfield cvs at cvs.gnupg.org
Fri Oct 6 11:55:35 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  1ed21eee79749b976b4a935f2279b162634e9c5e (commit)
      from  98c260e057e7829580da99f0c8e0037a3896bfae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1ed21eee79749b976b4a935f2279b162634e9c5e
Author: Neal H. Walfield <neal at g10code.com>
Date:   Fri Oct 6 11:51:39 2017 +0200

    gpg: Fix comparison.
    
    * g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
    not one or fewer.
    
    Signed-off-by: Neal H. Walfield <neal at walfield.org>

diff --git a/g10/gpgcompose.c b/g10/gpgcompose.c
index 2b42bfb..8c156d2 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)

-----------------------------------------------------------------------

Summary of changes:
 g10/gpgcompose.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list