From: Harald Welte Date: Thu, 13 Sep 2001 12:59:28 +0000 (+0000) Subject: another string_to_number fix X-Git-Tag: v1.2.4~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a7cc2808efc409711f5fa36be097aec0b2ebca3;p=thirdparty%2Fiptables.git another string_to_number fix --- diff --git a/extensions/libip6t_LOG.c b/extensions/libip6t_LOG.c index ef39c98d..aece4329 100644 --- a/extensions/libip6t_LOG.c +++ b/extensions/libip6t_LOG.c @@ -66,9 +66,9 @@ static struct ip6t_log_names ip6t_log_names[] static u_int8_t parse_level(const char *level) { - unsigned int lev; + unsigned int lev = -1; - if (string_to_number(level, 0, 7, lev) == -1) { + if (string_to_number(level, 0, 7, &lev) == -1) { unsigned int i = 0; for (i = 0;