diff options
author | das <das@noemail.net> | 2006-12-02 01:22:59 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-12-02 01:22:59 (GMT) |
commit | 8af5eb8f82527bc0baf39073e77cd5578706dda7 (patch) | |
tree | 92a84f35e040b7a92deed5491b1fdeb704941633 /generic/tclIOCmd.c | |
parent | 7749a8150e6bcb48862bb59bc158c39914d02637 (diff) | |
download | tcl-8af5eb8f82527bc0baf39073e77cd5578706dda7.zip tcl-8af5eb8f82527bc0baf39073e77cd5578706dda7.tar.gz tcl-8af5eb8f82527bc0baf39073e77cd5578706dda7.tar.bz2 |
fix warning
FossilOrigin-Name: 4acd037868d5178c881b2352696b6c3c50e33ce1
Diffstat (limited to 'generic/tclIOCmd.c')
-rw-r--r-- | generic/tclIOCmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c index c2c1bb8..e50c2c6 100644 --- a/generic/tclIOCmd.c +++ b/generic/tclIOCmd.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOCmd.c,v 1.35 2006/12/01 15:55:44 dgp Exp $ + * RCS: @(#) $Id: tclIOCmd.c,v 1.36 2006/12/02 01:23:00 das Exp $ */ #include "tclInt.h" @@ -1675,15 +1675,16 @@ TclChanPendingObjCmd( } else { Tcl_SetObjResult(interp, Tcl_NewIntObj(Tcl_InputBuffered(chan))); } - return TCL_OK; + break; case PENDING_OUTPUT: if ((mode & TCL_WRITABLE) == 0) { Tcl_SetObjResult(interp, Tcl_NewIntObj(-1)); } else { Tcl_SetObjResult(interp, Tcl_NewIntObj(Tcl_OutputBuffered(chan))); } - return TCL_OK; + break; } + return TCL_OK; } /* |