[git] GPG-ERROR - branch, master, updated. libgpg-error-1.18-6-gb5cb32f

by Werner Koch cvs at cvs.gnupg.org
Mon Mar 16 08:40:27 CET 2015


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 "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  b5cb32f979a80904ea58fc7531e43e2be2270573 (commit)
      from  4441e96801fdc4c900abae8c0aa0b53e2e26e079 (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 b5cb32f979a80904ea58fc7531e43e2be2270573
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Mar 16 08:34:57 2015 +0100

    Remove useless conditions.
    
    * src/estream.c (fname_set_internal): Remove useless condition.
    * src/mkheader.c (main): Ditto.
    --
    
    Detected by Stack 0.3.

diff --git a/src/estream.c b/src/estream.c
index 42609ee..3c7d05f 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -4347,12 +4347,9 @@ fname_set_internal (estream_t stream, const char *fname, int quote)
     quote = !!quote;
 
   stream->intern->printable_fname = mem_alloc (strlen (fname) + quote + 1);
-  if (fname)
-    {
-      if (quote)
-        stream->intern->printable_fname[0] = '\\';
-      strcpy (stream->intern->printable_fname+quote, fname);
-    }
+  if (quote)
+    stream->intern->printable_fname[0] = '\\';
+  strcpy (stream->intern->printable_fname+quote, fname);
 }
 
 
diff --git a/src/mkheader.c b/src/mkheader.c
index 3481771..380c7e3 100644
--- a/src/mkheader.c
+++ b/src/mkheader.c
@@ -606,7 +606,7 @@ main (int argc, char **argv)
           putchar ('@');
           fputs (p2, stdout);
         }
-      else if (p2 && *p2)
+      else if (*p2)
         {
           fputs (p2, stdout);
         }

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

Summary of changes:
 src/estream.c  | 9 +++------
 src/mkheader.c | 2 +-
 2 files changed, 4 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list