diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-06-10 00:05:57 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-09 16:55:09 -0700 |
commit | 7451790660243bc237da7f971ff3ebae40b92b98 (patch) | |
tree | d485fab107cf2a476826ae4c83f3d54e3344c56c /planner.c | |
parent | d11ca6bd606d5f9ba341f722af114b82093fe289 (diff) | |
download | subsurface-7451790660243bc237da7f971ff3ebae40b92b98.tar.gz |
planner.c: use implicit struct initializer
We should either use mplicit struct initializers (empty braces { }
or double braced zero {{ 0 }}) or memset the struct.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ struct divedatapoint *get_nth_dp(struct diveplan *diveplan, int idx) { struct divedatapoint **ldpp, *dp = diveplan->dp; int i = 0; - struct gasmix air = { 0 }; + struct gasmix air = { }; ldpp = &diveplan->dp; while (dp && i++ < idx) { |