summaryrefslogtreecommitdiff
path: root/src/libexecline/el_substitute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexecline/el_substitute.c')
-rw-r--r--src/libexecline/el_substitute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexecline/el_substitute.c b/src/libexecline/el_substitute.c
index 5eff6d3..9a337fe 100644
--- a/src/libexecline/el_substitute.c
+++ b/src/libexecline/el_substitute.c
@@ -152,7 +152,7 @@ int el_substitute (stralloc *dst, char const *src, size_t len, char const *vars,
int nc = 0 ;
int wasnull = !dst->s ;
- info.dst = *dst ;
+ if (!stralloc_copy(&info.dst, dst)) return -1 ;
info.values = values ;
while (i < len)