summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tclListObj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclListObj.c b/generic/tclListObj.c
index ddcb062..47bcccf 100644
--- a/generic/tclListObj.c
+++ b/generic/tclListObj.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclListObj.c,v 1.21 2005/04/02 02:08:59 msofer Exp $
+ * RCS: @(#) $Id: tclListObj.c,v 1.22 2005/04/09 11:09:58 das Exp $
*/
#include "tclInt.h"
@@ -622,7 +622,8 @@ Tcl_ListObjIndex(interp, listPtr, index, objPtrPtr)
(void) Tcl_GetStringFromObj(listPtr, &length);
if (!length) {
- return 0;
+ *objPtrPtr = NULL;
+ return TCL_OK;
}
result = SetListFromAny(interp, listPtr);