diff --git a/sys/src/9/port/devbridge.c b/sys/src/9/port/devbridge.c index a114b065a..d4413cf71 100644 --- a/sys/src/9/port/devbridge.c +++ b/sys/src/9/port/devbridge.c @@ -586,7 +586,7 @@ vlanrange(char *s, int *i, int *j) /* -nnn */ *j = -(*i); *i = 1; - } else if(*s == '-') { + } else if(*x == '-') { /* nnn- */ s = x; *j = -strtol(s, &x, 10);