diff options
author | dkf <dkf@noemail.net> | 2007-11-20 10:59:03 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-11-20 10:59:03 (GMT) |
commit | 7d2a9ab89e0e63b4545481c479f6ef72dd1e90a0 (patch) | |
tree | 0ae0beac1d30cd1da1d8ec736a8ff47185503b81 /generic/tclConfig.c | |
parent | 40d85d40a278bccc61fda28445123885e537edd8 (diff) | |
download | tcl-7d2a9ab89e0e63b4545481c479f6ef72dd1e90a0.zip tcl-7d2a9ab89e0e63b4545481c479f6ef72dd1e90a0.tar.gz tcl-7d2a9ab89e0e63b4545481c479f6ef72dd1e90a0.tar.bz2 |
Correct usage of Tcl_WrongNumArgs
FossilOrigin-Name: 12d29832543d4af11e124fa8883822f180552bb1
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; } |