diff options
author | dkf <dkf@noemail.net> | 2003-04-08 22:59:32 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2003-04-08 22:59:32 (GMT) |
commit | ca9ae2edfc9b84f160c4575e5dd6cf612fafe642 (patch) | |
tree | ff3d506aff61f837f3556f46c31d6b7aeb52f5da /generic/tclCmdAH.c | |
parent | 41f99496ede7cb65ef10ed6b8d69deaa9b822a9a (diff) | |
download | tcl-ca9ae2edfc9b84f160c4575e5dd6cf612fafe642.zip tcl-ca9ae2edfc9b84f160c4575e5dd6cf612fafe642.tar.gz tcl-ca9ae2edfc9b84f160c4575e5dd6cf612fafe642.tar.bz2 |
Use correct test for the empty string in Tcl_ErrorObjCmd
FossilOrigin-Name: 010e8b5f9e89963c86dd0e3ae2d5bd021270579a
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 596cab0..0d15bde 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.27.2.3 2003/03/14 23:19:45 dkf Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.27.2.4 2003/04/08 22:59:36 dkf Exp $ */ #include "tclInt.h" @@ -559,7 +559,7 @@ Tcl_ErrorObjCmd(dummy, interp, objc, objv) if (objc >= 3) { /* process the optional info argument */ info = Tcl_GetStringFromObj(objv[2], &infoLen); - if (*info != 0) { + if (infoLen > 0) { Tcl_AddObjErrorInfo(interp, info, infoLen); iPtr->flags |= ERR_ALREADY_LOGGED; } |