summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-12-05 14:54:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-12-05 14:54:07 (GMT)
commitb76dea45ad1f5edfce3d912f837877311368f132 (patch)
tree71dc8c9a29b4aba101a64be04736efb7d8b49b67 /generic/tclCmdIL.c
parentae4f33832403033f21b4eb353cd9403e070e111d (diff)
downloadtcl-b76dea45ad1f5edfce3d912f837877311368f132.zip
tcl-b76dea45ad1f5edfce3d912f837877311368f132.tar.gz
tcl-b76dea45ad1f5edfce3d912f837877311368f132.tar.bz2
Prevent shimmering crash in [lsearch] when -exact and -integer/-real are
mixed. [Bug 1844789]
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 85e51d0..eae2d10 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdIL.c,v 1.47.2.11 2007/03/10 14:57:38 dkf Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.47.2.12 2007/12/05 14:54:08 dkf Exp $
*/
#include "tclInt.h"
@@ -3374,12 +3374,14 @@ Tcl_LsearchObjCmd(clientData, interp, objc, objv)
if (result != TCL_OK) {
return result;
}
+ Tcl_ListObjGetElements(NULL, objv[objc - 2], &listc, &listv);
break;
case REAL:
result = Tcl_GetDoubleFromObj(interp, patObj, &patDouble);
if (result != TCL_OK) {
return result;
}
+ Tcl_ListObjGetElements(NULL, objv[objc - 2], &listc, &listv);
break;
}
} else {