aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index a2e06184b..0d7cac0b5 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8987,6 +8987,9 @@ localcmd(int argc UNUSED_PARAM, char **argv)
8987{ 8987{
8988 char *name; 8988 char *name;
8989 8989
8990 if (!funcnest)
8991 ash_msg_and_raise_error("not in a function");
8992
8990 argv = argptr; 8993 argv = argptr;
8991 while ((name = *argv++) != NULL) { 8994 while ((name = *argv++) != NULL) {
8992 mklocal(name); 8995 mklocal(name);