summaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
Diffstat (limited to 'smtk-import')
-rw-r--r--smtk-import/smartrak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smtk-import/smartrak.c b/smtk-import/smartrak.c
index f787b401a..d97e8b69f 100644
--- a/smtk-import/smartrak.c
+++ b/smtk-import/smartrak.c
@@ -376,9 +376,9 @@ static void smtk_build_location(MdbHandle *mdb, char *idx, timestamp_t when, uin
ds = get_dive_site_by_name(str);
if (!ds) {
if (!has_location(&loc))
- *location = create_dive_site(str, when);
+ *location = create_dive_site(str, when)->uuid;
else
- *location = create_dive_site_with_gps(str, &loc, when);
+ *location = create_dive_site_with_gps(str, &loc, when)->uuid;
ds = get_dive_site_by_uuid(*location);
} else {
*location = ds->uuid;