summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdMZ.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-03-13 11:10:44 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-03-13 11:10:44 (GMT)
commitcc54e8b692fee89c6fd62359d605a21434c1ab25 (patch)
tree13de6dfc488b01c6d3c5575abb5b20584700eb46 /generic/tclCmdMZ.c
parent3eac215c3bf3020dfdf73a7eda2683887b6a6f56 (diff)
downloadtcl-cc54e8b692fee89c6fd62359d605a21434c1ab25.zip
tcl-cc54e8b692fee89c6fd62359d605a21434c1ab25.tar.gz
tcl-cc54e8b692fee89c6fd62359d605a21434c1ab25.tar.bz2
A missing return was causing memory corruption in [string map].
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r--generic/tclCmdMZ.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index b328793..a0e0489 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdMZ.c,v 1.31 2001/02/16 09:26:30 dkf Exp $
+ * RCS: @(#) $Id: tclCmdMZ.c,v 1.32 2001/03/13 11:10:44 dkf Exp $
*/
#include "tclInt.h"
@@ -1663,6 +1663,7 @@ Tcl_StringObjCmd(dummy, interp, objc, objv)
* empty charMap, just return whatever string was given
*/
Tcl_SetObjResult(interp, objv[objc-1]);
+ return TCL_OK;
} else if (mapElemc & 1) {
/*
* The charMap must be an even number of key/value items