[Freeswitch-svn] [commit] r13126 - freeswitch/trunk/src/mod/loggers/mod_console

FreeSWITCH SVN stkn at freeswitch.org
Wed Apr 22 16:42:11 PDT 2009


Author: stkn
Date: Wed Apr 22 18:42:11 2009
New Revision: 13126

Log:
Fix mod_console too (missing FD_ZERO before FD_SET)

Modified:
   freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c

Modified: freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	Wed Apr 22 18:42:11 2009
@@ -155,6 +155,7 @@
 
 	fd = fileno(handle);
 	memset(&to, 0, sizeof(to));
+	FD_ZERO(&can_write);
 	FD_SET(fd, &can_write);
 	to.tv_sec = sec;
 	to.tv_usec = usec;



More information about the Freeswitch-svn mailing list