From 5bbafdc632350be7cc135940837b794a9deb4b73 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 4 Oct 2011 22:23:38 +0200 Subject: [PATCH] ifnet: fix possible use of uninitialized variable Detected by cppcheck. Signed-off-by: Thomas Jarosch --- src/settings/plugins/ifnet/net_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/plugins/ifnet/net_utils.c b/src/settings/plugins/ifnet/net_utils.c index 83f86ab50d..b533ae3f20 100644 --- a/src/settings/plugins/ifnet/net_utils.c +++ b/src/settings/plugins/ifnet/net_utils.c @@ -313,7 +313,7 @@ is_ip4_address (const char *in_address) gboolean result = FALSE; gchar *tmp; GRegex *regex = g_regex_new (pattern, 0, 0, NULL); - GMatchInfo *match_info; + GMatchInfo *match_info = NULL; if (!address) goto done;