aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-12 23:32:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-12 23:32:28 +0300
commite6ec3d5d5ab9f31142c09a70ff17741939a52192 (patch)
treec2bea692353beecac2294b5ea7355e35916bc0cb /mpfr.c
parent24b4f2c59b1c365d47ab6e3535a84ccdbcfb08eb (diff)
parent9fff07da8c25183f53934c0155d1fa49bc97198e (diff)
downloadegawk-e6ec3d5d5ab9f31142c09a70ff17741939a52192.tar.gz
egawk-e6ec3d5d5ab9f31142c09a70ff17741939a52192.tar.bz2
egawk-e6ec3d5d5ab9f31142c09a70ff17741939a52192.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpfr.c b/mpfr.c
index ec8d5561..5a2a35d3 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -384,6 +384,7 @@ mpg_format_val(const char *format, int index, NODE *s)
if ((s->flags & (MALLOC|STRCUR)) == (MALLOC|STRCUR))
efree(s->stptr);
s->stptr = r->stptr;
+ s->flags |= STRCUR;
freenode(r); /* Do not unref(r)! We want to keep s->stptr == r->stpr. */
free_wstr(s);
return s;