commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 21/98: libshouldbeinlibc: fix dead assignment


From: Samuel Thibault
Subject: [hurd] 21/98: libshouldbeinlibc: fix dead assignment
Date: Tue, 14 Jan 2014 01:59:59 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit e4e5c29fb254a05a134886ee6518e3d7cfde1cc6
Author: Justus Winter <address@hidden>
Date:   Fri Nov 15 12:26:32 2013 +0100

    libshouldbeinlibc: fix dead assignment
    
    Found using the Clang Static Analyzer.
    
    * libshouldbeinlibc/timefmt.c (fmt_past_time): Fix dead assignment,
      normalize adjacent white space.
---
 libshouldbeinlibc/timefmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c
index 7ce973b..a28f58b 100644
--- a/libshouldbeinlibc/timefmt.c
+++ b/libshouldbeinlibc/timefmt.c
@@ -338,8 +338,8 @@ fmt_past_time (struct timeval *tv, struct timeval *now,
 
              end = stpcpy (end, *dfmt);
              end = stpcpy (end, *sep);
-             end = stpcpy (end, *fmt);
-             
+             stpcpy (end, *fmt);
+
              used = strftime (buf, width + 1, whole_fmt, &tm);
            }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]