From 7b070a7c3c4ebcf234242d7a3dc3d6e84fad44a9 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Thu, 30 Apr 2009 23:25:32 +0000 Subject: * generic/tclBasic.c (TclObjInvoke): Make sure that a null objProc is not used, use Tcl_NRCallObjProc instead [Bug 2486550]. --- ChangeLog | 5 +++++ generic/tclBasic.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62427ce..3c4651f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-30 Miguel Sofer + + * generic/tclBasic.c (TclObjInvoke): Make sure that a null objProc + is not used, use Tcl_NRCallObjProc instead [Bug 2486550]. + 2009-05-01 Jan Nijtmans * win/configure.in Fix 64-bit detection for zlib on Win64 diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 919a031..d5aad5d 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.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: tclBasic.c,v 1.391 2009/03/22 14:46:28 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.392 2009/04/30 23:25:32 msofer Exp $ */ #include "tclInt.h" @@ -6421,7 +6421,12 @@ TclObjInvoke( */ iPtr->cmdCount++; - result = cmdPtr->objProc(cmdPtr->objClientData, interp, objc, objv); + if (cmdPtr->objProc != NULL) { + result = cmdPtr->objProc(cmdPtr->objClientData, interp, objc, objv); + } else { + result = Tcl_NRCallObjProc(interp, cmdPtr->nreProc, + cmdPtr->objClientData, objc, objv); + } /* * If an error occurred, record information about what was being executed -- cgit v0.12