[xiph-commits] r8956 - icecast/trunk/icecast/src

brendan at motherfish-iii.xiph.org brendan at motherfish-iii.xiph.org
Sat Feb 19 12:56:05 PST 2005


Author: brendan
Date: 2005-02-19 12:56:04 -0800 (Sat, 19 Feb 2005)
New Revision: 8956

Modified:
   icecast/trunk/icecast/src/fserve.c
Log:
The poll version of fserve_client_waiting causes icecast to die with an
assertion when it first starts up on OS X, because ufds starts out NULL.
I'd been using the select version until now and never noticed.


Modified: icecast/trunk/icecast/src/fserve.c
===================================================================
--- icecast/trunk/icecast/src/fserve.c	2005-02-19 19:46:33 UTC (rev 8955)
+++ icecast/trunk/icecast/src/fserve.c	2005-02-19 20:56:04 UTC (rev 8956)
@@ -142,7 +142,7 @@
             i++;
         }
     }
-    if (poll(ufds, fserve_clients, 200) > 0)
+    if (ufds && poll(ufds, fserve_clients, 200) > 0)
     {
         /* mark any clients that are ready */
         fclient = active_list;



More information about the commits mailing list