summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--divesite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/divesite.c b/divesite.c
index 113f117ff..6e2d9353d 100644
--- a/divesite.c
+++ b/divesite.c
@@ -175,6 +175,9 @@ void clear_dive_site(struct dive_site *ds)
free(ds->name);
free(ds->notes);
free(ds->description);
+ ds->name = 0;
+ ds->notes = 0;
+ ds->description = 0;
ds->latitude.udeg = 0;
ds->longitude.udeg = 0;
ds->uuid = 0;