aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-28 22:21:23 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-06-28 22:21:23 +0300
commit741bf93462919d841ffd7f3ed8c85a202b9dc3f8 (patch)
treea400d3e2f0b45784a24d703b06d76c882a25bac1 /awk.h
parent687e6594ca3a6195ef834a5466b5fc7de2de2d7b (diff)
downloadegawk-741bf93462919d841ffd7f3ed8c85a202b9dc3f8.tar.gz
egawk-741bf93462919d841ffd7f3ed8c85a202b9dc3f8.tar.bz2
egawk-741bf93462919d841ffd7f3ed8c85a202b9dc3f8.zip
Additional memory fixes and test for typedregex.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/awk.h b/awk.h
index 0c30cbdc..53af7f1b 100644
--- a/awk.h
+++ b/awk.h
@@ -1764,7 +1764,7 @@ static inline NODE *
force_string(NODE *s)
{
if (s->type == Node_typedregex)
- return s->re_exp;
+ return dupnode(s->re_exp);
if ((s->flags & STRCUR) != 0
&& (s->stfmt == -1 || s->stfmt == CONVFMTidx)