diff options
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r-- | core/uemis-downloader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index dd111a92a..2b44a9852 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -992,8 +992,9 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char * } else if (!is_log && dive && !strcmp(tag, "divespot_id")) { int divespot_id = atoi(val); if (divespot_id != -1) { - dive->dive_site_uuid = create_dive_site("from Uemis", dive->when)->uuid; - uemis_mark_divelocation(dive->dc.diveid, divespot_id, dive->dive_site_uuid); + struct dive_site *ds = create_dive_site("from Uemis", dive->when); + dive->dive_site_uuid = ds->uuid; + uemis_mark_divelocation(dive->dc.diveid, divespot_id, ds); } #if UEMIS_DEBUG & 2 fprintf(debugfile, "Created divesite %d for diveid : %d\n", dive->dive_site_uuid, dive->dc.diveid); |