summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authordas <das>2006-03-25 01:58:20 (GMT)
committerdas <das>2006-03-25 01:58:20 (GMT)
commitc8847a1771fc67f051cc48fc112d17a72f877f19 (patch)
tree835c47f381c748d5bd4cef88c2a2a186130c61e8 /unix/tclUnixChan.c
parentfb94ad949b0de75cd4bba7533321cf33d398fc94 (diff)
downloadtcl-c8847a1771fc67f051cc48fc112d17a72f877f19.zip
tcl-c8847a1771fc67f051cc48fc112d17a72f877f19.tar.gz
tcl-c8847a1771fc67f051cc48fc112d17a72f877f19.tar.bz2
handle Tcl_Panic potentially returning. coverity bug 46
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 926d047..6c0b7ed 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.66 2006/02/02 10:58:02 dkf Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.67 2006/03/25 01:58:20 das Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -3183,6 +3183,7 @@ TclUnixWaitForFile(
if (fd >= FD_SETSIZE) {
Tcl_Panic("TclWaitForFile can't handle file id %d", fd);
+ return 0;
}
memset((void *) readyMasks, 0, 3*MASK_SIZE*sizeof(fd_mask));
index = fd/(NBBY*sizeof(fd_mask));