summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-25 16:17:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-25 16:28:37 -0800
commit3f261f56f3401695d0577598624dddc09243b371 (patch)
tree65826e8fb34827a2bb4a417ef5595023610d595c /parse-xml.c
parent3ab27e65e8086199d6d23f0bd5d6f5a22b37a349 (diff)
downloadsubsurface-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.c2
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) {