diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-25 16:17:55 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-25 16:28:37 -0800 |
commit | 3f261f56f3401695d0577598624dddc09243b371 (patch) | |
tree | 65826e8fb34827a2bb4a417ef5595023610d595c /parse-xml.c | |
parent | 3ab27e65e8086199d6d23f0bd5d6f5a22b37a349 (diff) | |
download | subsurface-3f261f56f3401695d0577598624dddc09243b371.tar.gz |
Remove some unnecessary variable initializations
Not really bugs, just wasted. They clutter up the output of static
analysis with cppcheck.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c index 8128f25ee..5061227e3 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -169,7 +169,7 @@ static void divedate(char *buffer, void *_when) { int d,m,y; timestamp_t *when = _when; - int success = 0; + int success; success = cur_tm.tm_sec | cur_tm.tm_min | cur_tm.tm_hour; if (sscanf(buffer, "%d.%d.%d", &d, &m, &y) == 3) { |