From 7451790660243bc237da7f971ff3ebae40b92b98 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 10 Jun 2014 00:05:57 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2