devbridge: fix vlan range parsing
This commit is contained in:
parent
840d16912a
commit
5886b999d5
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ vlanrange(char *s, int *i, int *j)
|
||||||
/* -nnn */
|
/* -nnn */
|
||||||
*j = -(*i);
|
*j = -(*i);
|
||||||
*i = 1;
|
*i = 1;
|
||||||
} else if(*s == '-') {
|
} else if(*x == '-') {
|
||||||
/* nnn- */
|
/* nnn- */
|
||||||
s = x;
|
s = x;
|
||||||
*j = -strtol(s, &x, 10);
|
*j = -strtol(s, &x, 10);
|
||||||
|
|
Loading…
Reference in a new issue