From 90674cf7f8c2987536a5a93729ea1546acf0fe41 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 5 Oct 2017 21:36:23 +0300 Subject: 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 --- core/divesite.c | 6 +++--- 1 file 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; -- cgit v1.2.3-70-g09d2