diff options
Diffstat (limited to 'debian/patches/0002-libshouldbeinlibc-fix-dead-initialization-in-fmt_nam.patch')
-rw-r--r-- | debian/patches/0002-libshouldbeinlibc-fix-dead-initialization-in-fmt_nam.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/0002-libshouldbeinlibc-fix-dead-initialization-in-fmt_nam.patch b/debian/patches/0002-libshouldbeinlibc-fix-dead-initialization-in-fmt_nam.patch new file mode 100644 index 00000000..dbabc031 --- /dev/null +++ b/debian/patches/0002-libshouldbeinlibc-fix-dead-initialization-in-fmt_nam.patch @@ -0,0 +1,30 @@ +From 3bef76f4db1d08ec1ee46d0c8d245523cf5feebb Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Wed, 20 Nov 2013 12:17:03 +0100 +Subject: [PATCH 2/5] 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; +-- +2.0.0 + |