aboutsummaryrefslogtreecommitdiffstats
path: root/core/liquivision.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-06 19:00:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commitcef30619d0d7296e1730d87dae1c9712ac5cd822 (patch)
tree655e9c94f0272b38480b6fc6e5734388c5bc9408 /core/liquivision.c
parent4e419f74456bc3ac04e8d8c7550153434e36f475 (diff)
downloadsubsurface-cef30619d0d7296e1730d87dae1c9712ac5cd822.tar.gz
code cleanup: introduce empty_cylinder constant
This deals with the issue of initializing structs in C++. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/liquivision.c')
-rw-r--r--core/liquivision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/liquivision.c b/core/liquivision.c
index 1ea2b814a..905091dd8 100644
--- a/core/liquivision.c
+++ b/core/liquivision.c
@@ -149,7 +149,7 @@ static void parse_dives(int log_version, const unsigned char *buf, unsigned int
/* Just the main cylinder until we can handle the buddy cylinder porperly */
for (i = 0; i < 1; i++) {
- cylinder_t cyl = { 0 };
+ cylinder_t cyl = empty_cylinder;
fill_default_cylinder(dive, &cyl);
add_to_cylinder_table(&dive->cylinders, i, cyl);
}