]> git.sesse.net Git - vlc/commitdiff
services_discovery.c: Patch by Alexander Gall <gall # switch.ch>, avoid crashing...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 20 Aug 2007 17:13:32 +0000 (17:13 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 20 Aug 2007 17:13:32 +0000 (17:13 +0000)
src/playlist/services_discovery.c

index 931feaa297b4aa5e8a22c7c5282dd8481e2a8244..fc70a0b44e5f35b6bb8220bdc3178291402dc8ad 100644 (file)
@@ -183,7 +183,9 @@ static void playlist_sd_item_added( const vlc_event_t * p_event, void * user_dat
     const char * psz_cat = p_event->u.services_discovery_item_added.psz_category;
     playlist_item_t *p_new_item, * p_parent = user_data;
 
-    msg_Dbg( p_parent->p_playlist, "Adding %s in %s", p_input->psz_name, psz_cat );
+    msg_Dbg( p_parent->p_playlist, "Adding %s in %s",
+                p_input->psz_name ? p_input->psz_name : "(null)",
+                psz_cat ? psz_cat : "(null)" );
 
     /* If p_parent is in root category (this is clearly a hack) and we have a cat */
     if( !EMPTY_STR(psz_cat) &&