1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

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.

svn path=/icecast/trunk/icecast/; revision=8956
This commit is contained in:
brendan 2005-02-19 20:56:04 +00:00
parent bada4b1c41
commit 00749e6a68

View File

@ -142,7 +142,7 @@ int fserve_client_waiting (void)
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;