summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-11-27 21:55:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-01 14:30:56 -0800
commita04be5a7e4b019afd4799f618f876eb803955204 (patch)
tree9565475460fd0b5a535af521c4b961287ef52f25
parentfb265c292994d9afa252b5236a805f84cb0d4554 (diff)
downloadsubsurface-a04be5a7e4b019afd4799f618f876eb803955204.tar.gz
file.c: fix uninitialized variable
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index e755b3ad4..d733613f1 100644
--- a/file.c
+++ b/file.c
@@ -836,7 +836,7 @@ int parse_csv_file(const char *filename, int timef, int depthf, int tempf, int p
char unitbuf[MAXCOLDIGITS];
char separator_index[MAXCOLDIGITS];
time_t now;
- struct tm *timep;
+ struct tm *timep = NULL;
char curdate[DATESTR];
char curtime[TIMESTR];
@@ -873,7 +873,7 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp
char unitbuf[MAXCOLDIGITS];
char separator_index[MAXCOLDIGITS];
time_t now;
- struct tm *timep;
+ struct tm *timep = NULL;
char curdate[DATESTR];
char curtime[TIMESTR];
char *ptr, *ptr_old = NULL;