summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-06-10 00:05:57 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 16:55:09 -0700
commit7451790660243bc237da7f971ff3ebae40b92b98 (patch)
treed485fab107cf2a476826ae4c83f3d54e3344c56c /planner.c
parentd11ca6bd606d5f9ba341f722af114b82093fe289 (diff)
downloadsubsurface-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index b4400a88b..8cc9b6f85 100644
--- a/planner.c
+++ b/planner.c
@@ -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) {