aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-11-16 17:05:07 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-11-16 17:05:07 +0000
commit10786074c5dc358714fe5abbe8251387c5702b2e (patch)
tree2213e679847038166c5f2baed80f877fdfa46236 /sys/kern
parentc3ce2b2baa7a388d6909ffc8e70dfc2e79944621 (diff)
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index c2d7f1f9e5cf..511868fc37d7 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -415,6 +415,8 @@ dev_stdclone(char *name, char **namep, char *stem, int *unit)
if (name[i] == '0' && name[i + 1] != '\0' && isdigit(name[i + 1]))
return (0);
u = 0;
+ if (name[i] == '0' && isdigit(name[i+1]))
+ return (0);
while (isdigit(name[i])) {
u *= 10;
u += name[i++] - '0';