summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-05 21:36:23 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-05 12:06:13 -0700
commit90674cf7f8c2987536a5a93729ea1546acf0fe41 (patch)
tree66c67cabb565dd22fef02a34833c13dbf55f3256
parentd96c47a1b9d7bf72e07ca1ee2b7b45cb972825ac (diff)
downloadsubsurface-90674cf7f8c2987536a5a93729ea1546acf0fe41.tar.gz
divesite.c: use NULL instead of 0 for char* buffers
Makes it clearer that these are buffers and not integers like `ds->uuid`. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-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;