From: "Lubomir I. Ivanov" <[email protected]> We should either use mplicit struct initializers (empty braces { } or double braced zero {{ 0 }}) or memset the struct.
Signed-off-by: Lubomir I. Ivanov <[email protected]> --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index b4400a8..8cc9b6f 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) { -- 1.7.11.msysgit.0 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
