[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/fixtype, updated. gawk-4.1.0-189
From: |
Andrew J. Schorr |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/fixtype, updated. gawk-4.1.0-1892-gba9c9d8 |
Date: |
Wed, 6 Jul 2016 02:35:07 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/fixtype has been updated
via ba9c9d88506e819fae0d9d2b0acd72a88765d0eb (commit)
from 166a253ca87240fe7ec463223af0b25a3e0f3d8a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=ba9c9d88506e819fae0d9d2b0acd72a88765d0eb
commit ba9c9d88506e819fae0d9d2b0acd72a88765d0eb
Author: Andrew J. Schorr <address@hidden>
Date: Tue Jul 5 22:34:48 2016 -0400
Fix minor bug in last patch to rebuild_record for corner case that never
occurs.
diff --git a/ChangeLog b/ChangeLog
index 8ecec42..1f18948 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2016-07-05 Andrew J. Schorr <address@hidden>
+ * field.c (rebuild_record): Need to set MALLOC flag if we allocate
+ memory for a residual field node with valref > 1.
+
+2016-07-05 Andrew J. Schorr <address@hidden>
+
* field.c (rebuild_record): Do not bother to create new field nodes
to replace malloc'ed nodes when rebuilding $0.
diff --git a/field.c b/field.c
index 308f33c..39b4f96 100644
--- a/field.c
+++ b/field.c
@@ -218,6 +218,7 @@ rebuild_record()
emalloc(r->stptr, char *, r->stlen + 1,
"rebuild_record");
memcpy(r->stptr, cops, r->stlen);
r->stptr[r->stlen] = '\0';
+ r->flags |= MALLOC;
}
n->stptr = cops;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
field.c | 1 +
2 files changed, 6 insertions(+)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/fixtype, updated. gawk-4.1.0-1892-gba9c9d8,
Andrew J. Schorr <=