Changeset 4799d5040f622a37ef468ae995764c276433593d

Show
Ignore:
Timestamp:
20/08/07 19:13:32 (1 year ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1187630012 +0000
git-parent:

[237905674b0513c4d81362088b4c5648028bbf63]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1187630012 +0000
Message:

services_discovery.c: Patch by Alexander Gall <gall # switch.ch>, avoid crashing on systems that don't handle NULL string in ..printf.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/services_discovery.c

    r02e8a6c r4799d50  
    184184    playlist_item_t *p_new_item, * p_parent = user_data; 
    185185 
    186     msg_Dbg( p_parent->p_playlist, "Adding %s in %s", p_input->psz_name, psz_cat ); 
     186    msg_Dbg( p_parent->p_playlist, "Adding %s in %s", 
     187                p_input->psz_name ? p_input->psz_name : "(null)", 
     188                psz_cat ? psz_cat : "(null)" ); 
    187189 
    188190    /* If p_parent is in root category (this is clearly a hack) and we have a cat */