summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-15 12:26:32 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-15 12:26:32 +0100
commite4e5c29fb254a05a134886ee6518e3d7cfde1cc6 (patch)
tree8b1a3e5a385db4450a49b45cc8a5aa6f6a585807
parent5d3b00abe9a506ab3c3310cfb82394534463c40b (diff)
libshouldbeinlibc: fix dead assignment
Found using the Clang Static Analyzer. * libshouldbeinlibc/timefmt.c (fmt_past_time): Fix dead assignment, normalize adjacent white space.
-rw-r--r--libshouldbeinlibc/timefmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c
index 7ce973bc..a28f58bd 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);
}