diff options
Diffstat (limited to 'shell/ash.c')
-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 03f81af17..44984e41c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -13334,6 +13334,22 @@ SLIST_COPY_BEGIN(var_copy,struct var) | |||
13334 | (*vpp)->func = NULL; | 13334 | (*vpp)->func = NULL; |
13335 | SAVE_PTR((*vpp)->text); | 13335 | SAVE_PTR((*vpp)->text); |
13336 | SLIST_COPY_END() | 13336 | SLIST_COPY_END() |
13337 | |||
13338 | /* | ||
13339 | * struct localvar | ||
13340 | */ | ||
13341 | SLIST_SIZE_BEGIN(localvar_size,struct localvar) | ||
13342 | var_size(p->vp); | ||
13343 | funcstringsize += strlen(p->text) + 1; | ||
13344 | nodeptrsize += 2; /* p->vp, p->text */ | ||
13345 | SLIST_SIZE_END() | ||
13346 | |||
13347 | SLIST_COPY_BEGIN(localvar_copy,struct localvar) | ||
13348 | (*vpp)->text = nodeckstrdup(vp->text); | ||
13349 | (*vpp)->flags = vp->flags; | ||
13350 | (*vpp)->vp = var_copy(vp->vp); | ||
13351 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); | ||
13352 | SLIST_COPY_END() | ||
13337 | /*- | 13353 | /*- |
13338 | * Copyright (c) 1989, 1991, 1993, 1994 | 13354 | * Copyright (c) 1989, 1991, 1993, 1994 |
13339 | * The Regents of the University of California. All rights reserved. | 13355 | * The Regents of the University of California. All rights reserved. |