summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-12-17 16:47:38 (GMT)
committernijtmans <nijtmans>2008-12-17 16:47:38 (GMT)
commitdcb8ef7e626e6c7c77eab05df47cdbe283830627 (patch)
treeba50f40b968690dbb883c23d9fe46b3b2f9659e6 /generic/tclVar.c
parentcd7b89f85d8670ed80d6f13e0482c6f56be9d5fb (diff)
downloadtcl-dcb8ef7e626e6c7c77eab05df47cdbe283830627.zip
tcl-dcb8ef7e626e6c7c77eab05df47cdbe283830627.tar.gz
tcl-dcb8ef7e626e6c7c77eab05df47cdbe283830627.tar.bz2
move variable "length" inside if()
don't use ckfree((void *)...) but ckfree((char *)...)
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 34d3741..57607d3 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.172 2008/11/17 22:15:34 nijtmans Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.173 2008/12/17 16:47:38 nijtmans Exp $
*/
#include "tclInt.h"
@@ -3223,7 +3223,7 @@ Tcl_ArrayObjCmd(
stats = Tcl_HashStats((Tcl_HashTable *) varPtr->value.tablePtr);
if (stats != NULL) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(stats, -1));
- ckfree((void *)stats);
+ ckfree((char *)stats);
} else {
Tcl_SetResult(interp,"error reading array statistics",TCL_STATIC);
return TCL_ERROR;