diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-03 10:58:31 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-03 10:58:31 -0400 |
commit | f34cb4d3ef340a58dae88f426543c05c4e09f6dd (patch) | |
tree | 4cf81a60b28f31af1f76e1fc7c1879554369c52e /field.c | |
parent | 279a0d6476c4d403e1038a01d04c4b0cf2fd2f75 (diff) | |
download | egawk-f34cb4d3ef340a58dae88f426543c05c4e09f6dd.tar.gz egawk-f34cb4d3ef340a58dae88f426543c05c4e09f6dd.tar.bz2 egawk-f34cb4d3ef340a58dae88f426543c05c4e09f6dd.zip |
Fix bug where STRING flag was disabled during record reconstruction, and add test case.
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -216,7 +216,11 @@ rebuild_record() } } else { *n = *r; - n->flags &= ~(MALLOC|STRING); + if (n->flags & MALLOC) { + /* unexpected, since FIELD is on! */ + warning(_("invalid flags combination `%s' detected while rebuilding record; please file a bug report."), flags2str(n->flags)); + n->flags &= ~MALLOC; + } } n->stptr = cops; |