mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: initilize local variable
Silence compiler warning by correctly initializing local variable. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
0bb1a82127
commit
3e2caa468e
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int
|
|||
|
||||
unsigned int event_code, d = 0, e;
|
||||
struct lv_event event;
|
||||
memset(&event, 0, sizeof(event));
|
||||
|
||||
// Loop through events
|
||||
for (e = 0; e < ps_count; e++) {
|
||||
|
|
Loading…
Reference in a new issue