From fb2942a249685de0386629d4ce3761b453b967e4 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 30 Jun 2015 19:40:33 +0200 Subject: [PATCH] Initialize result --- src/subnet_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subnet_parse.c b/src/subnet_parse.c index c919b59a..ccfecbfa 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -311,7 +311,7 @@ bool net2str(char *netstr, int len, const subnet_t *subnet) { return false; } - int result; + int result = -1; int prefixlength = -1; switch (subnet->type) { case SUBNET_MAC: