summaryrefslogtreecommitdiff
path: root/bin/ksh/c_sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/c_sh.c')
-rw-r--r--bin/ksh/c_sh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/c_sh.c b/bin/ksh/c_sh.c
index e822e850570..be6b0f4da24 100644
--- a/bin/ksh/c_sh.c
+++ b/bin/ksh/c_sh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: c_sh.c,v 1.39 2009/01/29 23:27:26 jaredy Exp $ */
+/* $OpenBSD: c_sh.c,v 1.40 2009/05/05 17:59:55 millert Exp $ */
/*
* built-in Bourne commands
@@ -856,7 +856,7 @@ c_mknod(char **wp)
}
}
argv = &wp[builtin_opt.optind];
- if (argv[0] == '\0')
+ if (argv[0] == NULL)
goto usage;
for (argc = 0; argv[argc]; argc++)
;
@@ -880,6 +880,7 @@ c_mknod(char **wp)
umask(oldmode);
return ret;
usage:
+ builtin_argv0 = NULL;
bi_errorf("usage: mknod [-m mode] name [b | c] major minor");
bi_errorf("usage: mknod [-m mode] name p");
return 1;