ifnet: fix possible use of uninitialized variable

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
This commit is contained in:
Thomas Jarosch
2011-10-04 22:23:38 +02:00
committed by Dan Williams
parent d7ad91d1b4
commit 5bbafdc632

View File

@@ -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;