diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c6a36c0c..9201a4b4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +import: allow import of divesites without UUID divelist: do not include planned versions of a dive if there is real data desktop: fix key composition in tag widgets and dive site widget mobile: send log files as attachments for support emails on iOS diff --git a/core/parse.c b/core/parse.c index efe5c5bb1..e8161b395 100644 --- a/core/parse.c +++ b/core/parse.c @@ -247,13 +247,13 @@ void dive_site_end(struct parser_state *state) { if (!state->cur_dive_site) return; - if (state->cur_dive_site->uuid) { - struct dive_site *ds = alloc_or_get_dive_site(state->cur_dive_site->uuid, state->sites); - merge_dive_site(ds, state->cur_dive_site); - if (verbose > 3) - printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name); - } + struct dive_site *ds = alloc_or_get_dive_site(state->cur_dive_site->uuid, state->sites); + merge_dive_site(ds, state->cur_dive_site); + + if (verbose > 3) + printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name); + free_dive_site(state->cur_dive_site); state->cur_dive_site = NULL; }