diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-20 12:17:03 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-06-18 15:56:59 +0200 |
commit | 7c5f22e6c746e97871c0339c0068825018754822 (patch) | |
tree | ba4a5f403b9033a6d0415971746aae684762b7fa /libshouldbeinlibc | |
parent | b5a6e598c9f596f13d6aec151ee2efb9bf696b21 (diff) |
libshouldbeinlibc: fix dead initialization in fmt_named_interval
Found using the Clang Static Analyzer.
* libshouldbeinlibc/timefmt.c (fmt_named_interval): Fix dead
initialization.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/timefmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c index a28f58bd..cef72e02 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; |