summaryrefslogtreecommitdiffstats
path: root/core/datatrak.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/datatrak.c')
-rw-r--r--core/datatrak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/datatrak.c b/core/datatrak.c
index 974f44441..4c2a910bc 100644
--- a/core/datatrak.c
+++ b/core/datatrak.c
@@ -193,10 +193,10 @@ static unsigned char *dt_dive_parser(unsigned char *runner, struct dive *dt_dive
* Locality and Dive points.
*/
snprintf(buffer, sizeof(buffer), "%s, %s", locality, dive_point);
- ds = get_dive_site_by_name(buffer);
+ ds = get_dive_site_by_name(buffer, &dive_site_table);
dt_dive->dive_site = ds;
if (!dt_dive->dive_site)
- dt_dive->dive_site = create_dive_site(buffer, dt_dive->when);
+ dt_dive->dive_site = create_dive_site(buffer, dt_dive->when, &dive_site_table);
free(locality);
locality = NULL;
free(dive_point);