From 6c0bcec3e78b6b8f9775a12f7e369d62bcf16a71 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 19 Aug 2015 20:12:17 +0300 Subject: [PATCH] Avoid duplicate divesites on Liquivision import Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- liquivision.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquivision.c b/liquivision.c index 91e0277fb..add377237 100644 --- a/liquivision.c +++ b/liquivision.c @@ -149,7 +149,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int /* Store the location only if we have one */ if (len || place_len) { - dive->dive_site_uuid = create_dive_site(location); + dive->dive_site_uuid = find_or_create_dive_site_with_name(location); free(location); }