Displaying 1 result from an estimated 1 matches for "e545e02c".
2020 Mar 28
0
[klibc:update-dash] dash: eval: Always set localvar_stop
...ocalvar_stack;
+ if (!push)
+ goto out;
INTOFF;
ll = ckmalloc(sizeof(*ll));
ll->lv = NULL;
- ll->next = localvar_stack;
+ ll->next = top;
localvar_stack = ll;
INTON;
- return ll->next;
+out:
+ return top;
}
diff --git a/usr/dash/var.h b/usr/dash/var.h
index 8759be46..e545e02c 100644
--- a/usr/dash/var.h
+++ b/usr/dash/var.h
@@ -147,7 +147,7 @@ int showvars(const char *, int, int);
int exportcmd(int, char **);
int localcmd(int, char **);
void mklocal(char *name, int flags);
-struct localvar_list *pushlocalvars(void);
+struct localvar_list *pushlocalvars(int push);
vo...