diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/parse.c b/core/parse.c index d2be71e21..459108a26 100644 --- a/core/parse.c +++ b/core/parse.c @@ -114,7 +114,7 @@ void event_end(struct parser_state *state) { struct divecomputer *dc = get_dc(state); if (state->cur_event.type == 123) { - struct picture pic; + struct picture pic = empty_picture; pic.filename = strdup(state->cur_event.name); /* theoretically this could fail - but we didn't support multi year offsets */ pic.offset.seconds = state->cur_event.time.seconds; |