summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-06-07 09:04:00 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-06-07 09:04:00 (GMT)
commit3c6ae9a6ef0490e5aa0d4f06d7fbf41fcb768195 (patch)
tree68e6afbbd8ec6883b838e2c5b23f600bbf0090fb
parent3ccea0f2a3b67e87ae78663a42c045f05330e916 (diff)
downloadtcl-3c6ae9a6ef0490e5aa0d4f06d7fbf41fcb768195.zip
tcl-3c6ae9a6ef0490e5aa0d4f06d7fbf41fcb768195.tar.gz
tcl-3c6ae9a6ef0490e5aa0d4f06d7fbf41fcb768195.tar.bz2
Add missing return in wrong#args case
-rw-r--r--generic/tclCmdAH.c3
1 files changed, 2 insertions, 1 deletions
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());