Overview
| Artifact ID: | 1c93e22f50b503902ad63e7aa16ad56c6b64416c |
|---|---|
| Ticket: | 2057479fffffffffffffffffffffffffffffffff
Undefined symbol _tclEmptyStringRep |
| User & Date: | das on 2008-08-20 03:56:04 |
Changes
- icomment:
Logged In: YES user_id=90580 Originator: NO the following patch fixes the issue for me, Miguel, any objections to committing this? Index: generic/tclTest.c =================================================================== RCS file: /cvsroot/tcl/tcl/generic/tclTest.c,v retrieving revision 1.122 diff -u -p -r1.122 tclTest.c --- generic/tclTest.c17 Aug 2008 14:15:25 -00001.122 +++ generic/tclTest.c19 Aug 2008 20:46:11 -0000 @@ -6617,11 +6617,17 @@ TestconcatobjCmd( list1Ptr = Tcl_NewStringObj("foo bar sum", -1); Tcl_ListObjLength(NULL, list1Ptr, &len); - TclInvalidateStringRep(list1Ptr); + if (list1Ptr->bytes != NULL) { +ckfree((char *) list1Ptr->bytes); +list1Ptr->bytes = NULL; + } list2Ptr = Tcl_NewStringObj("eeny meeny", -1); Tcl_ListObjLength(NULL, list2Ptr, &len); - TclInvalidateStringRep(list2Ptr); + if (list2Ptr->bytes != NULL) { +ckfree((char *) list2Ptr->bytes); +list2Ptr->bytes = NULL; + } /* * Verify that concat'ing a list obj with one or more empty strings does - login: "das"
- mimetype: "text/plain"
- username: "das"