aboutsummaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
Diffstat (limited to 'smtk-import')
-rw-r--r--smtk-import/smartrak.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smtk-import/smartrak.c b/smtk-import/smartrak.c
index 8ef01de48..b33afb43c 100644
--- a/smtk-import/smartrak.c
+++ b/smtk-import/smartrak.c
@@ -373,12 +373,12 @@ static void smtk_build_location(MdbHandle *mdb, char *idx, timestamp_t when, str
str = smtk_concat_str(str, ", ", "%s", col[1]->bind_ptr); // Locality
str = smtk_concat_str(str, ", ", "%s", site);
- ds = get_dive_site_by_name(str);
+ ds = get_dive_site_by_name(str, &dive_site_table);
if (!ds) {
if (!has_location(&loc))
- ds = create_dive_site(str, when);
+ ds = create_dive_site(str, when, &dive_site_table);
else
- ds = create_dive_site_with_gps(str, &loc, when);
+ ds = create_dive_site_with_gps(str, &loc, when, &dive_site_table);
}
*location = ds;
smtk_free(bound_values, table->num_cols);