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>
This commit is contained in:
Lubomir I. Ivanov 2014-06-10 00:05:57 +03:00 committed by Dirk Hohndel
parent d11ca6bd60
commit 7451790660

View file

@ -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) {