From: Guillaume Castagnino Date: Tue, 20 Jan 2015 13:50:56 +0000 (+0100) Subject: vars may be used uninitialized. This may lead to unattended behaviour at certain... X-Git-Tag: v1.5.0-rc2~14^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae99c0dbd321bbf493d1cf490f92eb7f6777e817;p=thirdparty%2Frrdtool-1.x.git vars may be used uninitialized. This may lead to unattended behaviour at certain optimisation level --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 89cf0097..83693470 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -5141,7 +5141,7 @@ int vdef_parse( * so the parsing is rather simple. Change if needed. */ double param; - char func[30], double_str[21]; + char func[30] = {0}, double_str[21] = {0}; int n; n = 0;