From 20328eaddfbe27bf3c9fbff9bfda56160fd2a77f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 25 Jan 2017 14:47:34 +0100 Subject: [PATCH] core: add missing initializers to match_data_s390_subchannels_eval() match_device_s390_subchannels_parse() asserts that arguments point to zeroes. 1299 static gboolean 1300 match_data_s390_subchannels_eval (const char *spec_str, 1301 MatchDeviceData *match_data) 1302 { >>> CID 160923: Uninitialized variables (UNINIT) >>> Declaring variable "c" without initializer. 1303 guint32 a, b, c; Fixes: b0aaff86b61b9267cbc7640836823bbba82668b8 --- src/nm-core-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c index 79f9e11793..1501ef984e 100644 --- a/src/nm-core-utils.c +++ b/src/nm-core-utils.c @@ -1300,7 +1300,7 @@ static gboolean match_data_s390_subchannels_eval (const char *spec_str, MatchDeviceData *match_data) { - guint32 a, b, c; + guint32 a = 0, b = 0, c = 0; if (G_UNLIKELY (!match_data->s390_subchannels.is_parsed)) { match_data->s390_subchannels.is_parsed = TRUE;