diff options
-rw-r--r-- | shell/ash.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index 44984e41c..5431f3b17 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -13350,6 +13350,19 @@ SLIST_COPY_BEGIN(localvar_copy,struct localvar) | |||
13350 | (*vpp)->vp = var_copy(vp->vp); | 13350 | (*vpp)->vp = var_copy(vp->vp); |
13351 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); | 13351 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); |
13352 | SLIST_COPY_END() | 13352 | SLIST_COPY_END() |
13353 | |||
13354 | /* | ||
13355 | * struct strlist | ||
13356 | */ | ||
13357 | SLIST_SIZE_BEGIN(strlist_size,struct strlist) | ||
13358 | funcstringsize += strlen(p->text) + 1; | ||
13359 | nodeptrsize++; /* p->text */ | ||
13360 | SLIST_SIZE_END() | ||
13361 | |||
13362 | SLIST_COPY_BEGIN(strlist_copy,struct strlist) | ||
13363 | (*vpp)->text = nodeckstrdup(vp->text); | ||
13364 | SAVE_PTR((*vpp)->text); | ||
13365 | SLIST_COPY_END() | ||
13353 | /*- | 13366 | /*- |
13354 | * Copyright (c) 1989, 1991, 1993, 1994 | 13367 | * Copyright (c) 1989, 1991, 1993, 1994 |
13355 | * The Regents of the University of California. All rights reserved. | 13368 | * The Regents of the University of California. All rights reserved. |