summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/divesite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/divesite.c b/core/divesite.c
index 4e4eccfe8..3d5547905 100644
--- a/core/divesite.c
+++ b/core/divesite.c
@@ -314,9 +314,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->name = NULL;
+ ds->notes = NULL;
+ ds->description = NULL;
ds->latitude.udeg = 0;
ds->longitude.udeg = 0;
ds->uuid = 0;