From 0d2d91a28c1c10a0ee36c42610f618265a5f48be Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Fri, 24 Jul 2015 19:53:20 +0300 Subject: [PATCH] Cobalt import: use find or create divesite Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);