diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 19:00:20 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | cef30619d0d7296e1730d87dae1c9712ac5cd822 (patch) | |
tree | 655e9c94f0272b38480b6fc6e5734388c5bc9408 /core/datatrak.c | |
parent | 4e419f74456bc3ac04e8d8c7550153434e36f475 (diff) | |
download | subsurface-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/datatrak.c')
-rw-r--r-- | core/datatrak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/datatrak.c b/core/datatrak.c index 728efe5ab..2d825cb37 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -317,7 +317,7 @@ static unsigned char *dt_dive_parser(unsigned char *runner, struct dive *dt_dive */ read_bytes(2); if (tmp_2bytes != 0x7FFF) { - cylinder_t cyl = { 0 }; + cylinder_t cyl = empty_cylinder; cyl.type.size.mliter = tmp_2bytes * 10; cyl.type.description = ""; cyl.start.mbar = 200000; |