mirror of
https://github.com/openharmony/third_party_iptables.git
synced 2026-07-21 06:15:26 -04:00
another string_to_number fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user