Avoid duplicate divesites on Liquivision import

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-08-19 20:12:17 +03:00 committed by Dirk Hohndel
parent 9bd683ef35
commit 6c0bcec3e7

View file

@ -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);
}