[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
- [hurd] 26/87: Merge the random translator into the Hurd repository, (continued)
- [hurd] 26/87: Merge the random translator into the Hurd repository, Samuel Thibault, 2014/11/09
- [hurd] 22/87: ext2fs: use size_t where appropriate, Samuel Thibault, 2014/11/09
- [hurd] 14/87: Merge branch 'random' of ssh://git.savannah.gnu.org/srv/git/hurd/incubator into random, Samuel Thibault, 2014/11/09
- [hurd] 28/87: term: improve the demuxer, Samuel Thibault, 2014/11/09
- [hurd] 27/87: Add the random translator to prog-subdirs, Samuel Thibault, 2014/11/09
- [hurd] 33/87: Merge procfs into the Hurd repository, Samuel Thibault, 2014/11/09
- [hurd] 34/87: Add the procfs translator to prog-subdirs, Samuel Thibault, 2014/11/09
- [hurd] 36/87: ftpfs: fix error handling in refresh_dir, Samuel Thibault, 2014/11/09
- [hurd] 29/87: hurd: fix receiver lookup in termctty_open_terminal, Samuel Thibault, 2014/11/09
- [hurd] 35/87: Add mach_debug defs rules, Samuel Thibault, 2014/11/09
- [hurd] 37/87: libshouldbeinlibc: fix dead initialization in fmt_named_interval,
Samuel Thibault <=
- [hurd] 32/87: Prepare the procfs translator to be merged into the Hurd sources, Samuel Thibault, 2014/11/09
- [hurd] 38/87: trans/fakeroot: fix error handling, Samuel Thibault, 2014/11/09
- [hurd] 39/87: libports: avoid realloc(3) corner case, Samuel Thibault, 2014/11/09
- [hurd] 40/87: libdiskfs: add permission check to file_chflags, Samuel Thibault, 2014/11/09
- [hurd] 31/87: Merge branch 'merge-random', Samuel Thibault, 2014/11/09
- [hurd] 41/87: libdiskfs: expose the ST_NOATIME flag, Samuel Thibault, 2014/11/09
- [hurd] 43/87: ext2fs: use correct type for block numbers, Samuel Thibault, 2014/11/09
- [hurd] 42/87: libdiskfs: fix deadlock, Samuel Thibault, 2014/11/09
- [hurd] 44/87: libpipe: fix calls to pipe_send with no data, Samuel Thibault, 2014/11/09
- [hurd] 24/87: ext2fs: fix type of retry_dotdot, Samuel Thibault, 2014/11/09