summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 6db74cf..8962b6c 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -6254,13 +6254,13 @@ Tcl_AppendObjToErrorInfo(
* Now append "message" to the end of errorInfo.
*/
- if (objPtr->length != 0) {
+ if (length != 0) {
if (Tcl_IsShared(iPtr->errorInfo)) {
Tcl_DecrRefCount(iPtr->errorInfo);
iPtr->errorInfo = Tcl_DuplicateObj(iPtr->errorInfo);
Tcl_IncrRefCount(iPtr->errorInfo);
}
- Tcl_AppendToObj(iPtr->errorInfo, message, objPtr->length);
+ Tcl_AppendToObj(iPtr->errorInfo, message, length);
}
Tcl_DecrRefCount(objPtr);
}