mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
file.c: fix uninitialized variable
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fb265c2929
commit
a04be5a7e4
1 changed files with 2 additions and 2 deletions
4
file.c
4
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue