aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index c51fb804d..3e9997b53 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8979,7 +8979,7 @@ mklocal(char *name)
8979 */ 8979 */
8980 lvp = localvars; 8980 lvp = localvars;
8981 while (lvp) { 8981 while (lvp) {
8982 if (varcmp(lvp->vp->var_text, name) == 0) { 8982 if (lvp->vp && varcmp(lvp->vp->var_text, name) == 0) {
8983 if (eq) 8983 if (eq)
8984 setvareq(name, 0); 8984 setvareq(name, 0);
8985 /* else: 8985 /* else: