From 3c6ae9a6ef0490e5aa0d4f06d7fbf41fcb768195 Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 7 Jun 2005 09:04:00 +0000 Subject: Add missing return in wrong#args case --- generic/tclCmdAH.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index c3037bc..14b5e66 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.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: tclCmdAH.c,v 1.61 2005/05/10 18:34:08 kennykb Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.62 2005/06/07 09:04:00 dkf Exp $ */ #include "tclInt.h" @@ -552,6 +552,7 @@ TclEncodingDirsObjCmd(dummy, interp, objc, objv) { if (objc > 2) { Tcl_WrongNumArgs(interp, 1, objv, "?dirList?"); + return TCL_ERROR; } if (objc == 1) { Tcl_SetObjResult(interp, TclGetEncodingSearchPath()); -- cgit v0.12