From ae99c0dbd321bbf493d1cf490f92eb7f6777e817 Mon Sep 17 00:00:00 2001 From: Guillaume Castagnino Date: Tue, 20 Jan 2015 14:50:56 +0100 Subject: [PATCH] vars may be used uninitialized. This may lead to unattended behaviour at certain optimisation level --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2