diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-31 22:01:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-31 22:01:14 +0200 |
commit | ce01568de72d8413edddbe23db14031787667d12 (patch) | |
tree | e1e98c816a833dd5363946d2570648dcd48afb19 /awkgram.c | |
parent | 4e7f84903580b2bc46946edc93b66b18f1f64e5c (diff) | |
parent | a4d313ca20a63d28b7a2020e6897f4e3e04dae6e (diff) | |
download | egawk-ce01568de72d8413edddbe23db14031787667d12.tar.gz egawk-ce01568de72d8413edddbe23db14031787667d12.tar.bz2 egawk-ce01568de72d8413edddbe23db14031787667d12.zip |
Merge branch 'master' into feature/nocopy
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -8619,7 +8619,12 @@ make_profile_number(double d, const char *str, size_t len) n->stptr = estrdup(str, len + 1); n->stptr[len] = '\0'; n->stlen = len; - n->flags |= NUMCONSTSTR; + // Set STRCUR and n->stfmt for use when profiling + // (i.e., actually running the program) so that + // force_string() on this item will work ok. + // Thanks and a tip of the hatlo to valgrind. + n->flags |= (NUMCONSTSTR|STRCUR); + n->stfmt = STFMT_UNUSED; } return n; |