commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 37/87: libshouldbeinlibc: fix dead initialization in fmt_named_in


From: Samuel Thibault
Subject: [hurd] 37/87: libshouldbeinlibc: fix dead initialization in fmt_named_interval
Date: Sun, 09 Nov 2014 11:05:02 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 7c5f22e6c746e97871c0339c0068825018754822
Author: Justus Winter <address@hidden>
Date:   Wed Nov 20 12:17:03 2013 +0100

    libshouldbeinlibc: fix dead initialization in fmt_named_interval
    
    Found using the Clang Static Analyzer.
    
    * libshouldbeinlibc/timefmt.c (fmt_named_interval): Fix dead
    initialization.
---
 libshouldbeinlibc/timefmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c
index a28f58b..cef72e0 100644
--- a/libshouldbeinlibc/timefmt.c
+++ b/libshouldbeinlibc/timefmt.c
@@ -105,7 +105,7 @@ fmt_named_interval (struct timeval *tv, size_t width,
     {{0, 1},       {0, 1},     {0, 0},    {" microsecond", "us", 0 }},
     {{0, 0} }
   };
-  struct tscale *ts = time_scales;
+  struct tscale *ts;
 
   if (width <= 0 || width >= buf_len)
     width = buf_len - 1;

-- 
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]