[xiph-commits] r7419 - icecast/trunk/ices0/src

brendan at motherfish-iii.xiph.org brendan
Thu Aug 5 19:02:46 PDT 2004


Author: brendan
Date: Thu Aug  5 19:02:46 2004
New Revision: 7419

Modified:
icecast/trunk/ices0/src/setup.c
Log:
Oops, watch out for empty plugin list in plugin init.


Modified: icecast/trunk/ices0/src/setup.c
===================================================================
--- icecast/trunk/ices0/src/setup.c	2004-07-30 15:53:31 UTC (rev 7418)
+++ icecast/trunk/ices0/src/setup.c	2004-07-30 16:33:04 UTC (rev 7419)
@@ -84,7 +84,7 @@
while (ices_config.plugins && ices_config.plugins->init() < 0)
ices_config.plugins = ices_config.plugins->next;

-  for (plugin = ices_config.plugins; plugin->next; plugin = plugin->next)
+  for (plugin = ices_config.plugins; plugin && plugin->next; plugin = plugin->next)
if (plugin->next->init() < 0)
plugin->next = plugin->next->next;
#endif



More information about the commits mailing list