summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 17a2df35b..4936bcd2d 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2691,7 +2691,7 @@ extern int cobalt_location(void *handle, int columns, char **data, char **column
sprintf(tmp, "%s / %s", location, data[0]);
free(location);
location = NULL;
- cur_dive->dive_site_uuid = create_dive_site(tmp);
+ cur_dive->dive_site_uuid = find_or_create_dive_site_with_name(tmp);
free(tmp);
} else {
location = strdup(data[0]);