From 7a7cc2808efc409711f5fa36be097aec0b2ebca3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 13 Sep 2001 12:59:28 +0000 Subject: another string_to_number fix --- extensions/libip6t_LOG.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- cgit v1.2.3