diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 16 |
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; |
13336 | SAVE_PTR((*vpp)->text); | 13336 | SAVE_PTR((*vpp)->text); |
13337 | SLIST_COPY_END() | 13337 | SLIST_COPY_END() |
13338 | |||
13339 | /* | ||
13340 | * struct localvar | ||
13341 | */ | ||
13342 | SLIST_SIZE_BEGIN(localvar_size,struct localvar) | ||
13343 | var_size(p->vp); | ||
13344 | funcstringsize += strlen(p->text) + 1; | ||
13345 | nodeptrsize += 2; /* p->vp, p->text */ | ||
13346 | SLIST_SIZE_END() | ||
13347 | |||
13348 | SLIST_COPY_BEGIN(localvar_copy,struct localvar) | ||
13349 | (*vpp)->text = nodeckstrdup(vp->text); | ||
13350 | (*vpp)->flags = vp->flags; | ||
13351 | (*vpp)->vp = var_copy(vp->vp); | ||
13352 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); | ||
13353 | SLIST_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. |