aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index fa4410749..e028d0fcd 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13335,6 +13335,22 @@ SLIST_COPY_BEGIN(var_copy,struct var)
13335(*vpp)->func = NULL; 13335(*vpp)->func = NULL;
13336SAVE_PTR((*vpp)->text); 13336SAVE_PTR((*vpp)->text);
13337SLIST_COPY_END() 13337SLIST_COPY_END()
13338
13339/*
13340 * struct localvar
13341 */
13342SLIST_SIZE_BEGIN(localvar_size,struct localvar)
13343var_size(p->vp);
13344funcstringsize += strlen(p->text) + 1;
13345nodeptrsize += 2; /* p->vp, p->text */
13346SLIST_SIZE_END()
13347
13348SLIST_COPY_BEGIN(localvar_copy,struct localvar)
13349(*vpp)->text = nodeckstrdup(vp->text);
13350(*vpp)->flags = vp->flags;
13351(*vpp)->vp = var_copy(vp->vp);
13352SAVE_PTR2((*vpp)->vp, (*vpp)->text);
13353SLIST_COPY_END()
13338/*- 13354/*-
13339 * Copyright (c) 1989, 1991, 1993, 1994 13355 * Copyright (c) 1989, 1991, 1993, 1994
13340 * The Regents of the University of California. All rights reserved. 13356 * The Regents of the University of California. All rights reserved.