From 71c06757b220a261d02835ec41466e2c8447ba41 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sun, 13 Jul 2008 11:02:30 +0200 Subject: [PATCH] playlist: Fix a warning about an unitialized ptr. --- src/playlist/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playlist/tree.c b/src/playlist/tree.c index 35eb33b367..3b583ee7ad 100644 --- a/src/playlist/tree.c +++ b/src/playlist/tree.c @@ -59,7 +59,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, playlist_item_t *p_parent, int i_flags, input_item_t *p_input ) { - input_item_t *p_new_input; + input_item_t *p_new_input = NULL; playlist_item_t *p_item; if( !psz_name ) psz_name = _("Undefined"); @@ -69,7 +69,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, psz_name, 0, NULL, -1, ITEM_TYPE_NODE ); p_item = playlist_ItemNewFromInput( VLC_OBJECT(p_playlist), p_input ? p_input : p_new_input ); - if( !p_input ) + if( p_new_input ) vlc_gc_decref( p_new_input ); if( p_item == NULL ) return NULL; -- 2.39.2