mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Avoid calling free on uninitialized dive variable
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eef3d63de6
commit
b6bbfdcc5f
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ static int dive_cb(const unsigned char *data, unsigned int size,
|
|||
device_data_t *devdata = userdata;
|
||||
dc_datetime_t dt = { 0 };
|
||||
struct tm tm;
|
||||
struct dive *dive;
|
||||
struct dive *dive = NULL;
|
||||
|
||||
/* reset the deco / ndl data */
|
||||
ndl = stoptime = stopdepth = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue