chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Invalidate string rep. Before make expandable buffer.
[chiark-tcl.git]
/
base
/
parse.c
diff --git
a/base/parse.c
b/base/parse.c
index a7ac819c637813e78caef4991c3c46f32e2ebdf0..1e1e5bb2ba616b13d3a27e08e8a9c74d1458c8c6 100644
(file)
--- a/
base/parse.c
+++ b/
base/parse.c
@@
-49,6
+49,7
@@
int pat_hbv(Tcl_Interp *ip, Tcl_Obj *var, HBytes_Var *agg) {
void fini_hbv(Tcl_Interp *ip, int rc, HBytes_Var *agg) {
Tcl_Obj *ro;
+ Tcl_InvalidateStringRep(agg->obj);
if (!rc) {
assert(agg->obj);
ro= Tcl_ObjSetVar2(ip,agg->var,0,agg->obj,TCL_LEAVE_ERR_MSG);