aboutsummaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/strbuf.c b/strbuf.c
index 886276e5..455100a2 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -69,6 +69,10 @@ int DEEP_COPY(strbuf)(strbuf* dest, strbuf* src) {
retval = 1;
}
+ if (src->scm != NULL) {
+ dest->scm = src->scm;
+ }
+
dest->len = src->len;
memcpy(dest->mem, src->mem, src->len);
return retval;