mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: avoid uninitialized data
In an abundance of caution, make sure all fields are initialized. Fixes CID 350734 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
840f273ade
commit
cffcce77bb
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ int parse_txt_file(const char *filename, const char *csv, struct dive_table *tab
|
|||
bool has_depth = false, has_setpoint = false, has_ndl = false;
|
||||
char *lineptr, *key, *value;
|
||||
unsigned int prev_time = 0;
|
||||
cylinder_t cyl;
|
||||
cylinder_t cyl = empty_cylinder;
|
||||
|
||||
struct dive *dive;
|
||||
struct divecomputer *dc;
|
||||
|
|
Loading…
Add table
Reference in a new issue