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

karl at svn.xiph.org karl at svn.xiph.org
Sun May 11 16:20:51 PDT 2008


Author: karl
Date: 2008-05-11 16:20:50 -0700 (Sun, 11 May 2008)
New Revision: 14866

Modified:
   icecast/trunk/icecast/src/cfgfile.c
Log:
sanity check for unspecifed url


Modified: icecast/trunk/icecast/src/cfgfile.c
===================================================================
--- icecast/trunk/icecast/src/cfgfile.c	2008-05-11 16:27:29 UTC (rev 14865)
+++ icecast/trunk/icecast/src/cfgfile.c	2008-05-11 23:20:50 UTC (rev 14866)
@@ -918,6 +918,8 @@
             if (tmp) xmlFree(tmp);
         }
     } while ((node = node->next));
+    if (configuration->yp_url [configuration->num_yp_directories] == NULL)
+        return;
     configuration->num_yp_directories++;
 }
 



More information about the commits mailing list