diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-11-20 10:59:04 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-11-20 10:59:04 (GMT) |
commit | cab83627f204aa8bfe9ca5fcb7e6767b7a05cef2 (patch) | |
tree | 0ae0beac1d30cd1da1d8ec736a8ff47185503b81 /generic/tclConfig.c | |
parent | ee79ca9838fe95338f326fa78a6387811ececd9a (diff) | |
download | tcl-cab83627f204aa8bfe9ca5fcb7e6767b7a05cef2.zip tcl-cab83627f204aa8bfe9ca5fcb7e6767b7a05cef2.tar.gz tcl-cab83627f204aa8bfe9ca5fcb7e6767b7a05cef2.tar.bz2 |
Correct usage of Tcl_WrongNumArgs
Diffstat (limited to 'generic/tclConfig.c')
-rw-r--r-- | generic/tclConfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclConfig.c b/generic/tclConfig.c index 43c25af..2acffe2 100644 --- a/generic/tclConfig.c +++ b/generic/tclConfig.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclConfig.c,v 1.16 2007/11/05 21:26:41 andreas_kupries Exp $ + * RCS: @(#) $Id: tclConfig.c,v 1.17 2007/11/20 10:59:09 dkf Exp $ */ #include "tclInt.h" @@ -232,7 +232,7 @@ QueryConfigObjCmd( switch ((enum subcmds) index) { case CFG_GET: if (objc != 3) { - Tcl_WrongNumArgs(interp, 1, objv, "get key"); + Tcl_WrongNumArgs(interp, 2, objv, "key"); return TCL_ERROR; } @@ -247,7 +247,7 @@ QueryConfigObjCmd( case CFG_LIST: if (objc != 2) { - Tcl_WrongNumArgs(interp, 1, objv, "list"); + Tcl_WrongNumArgs(interp, 2, objv, NULL); return TCL_ERROR; } |