mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d96c47a1b9
commit
90674cf7f8
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue