[vlc-commits] playlist: fix missing NULL test

Steve Lhomme git at videolan.org
Wed Feb 8 15:08:12 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Nov 17 09:39:03 2016 +0100| [6e97b461fe1f64797e4233170685bc3a60869a1b] | committer: Jean-Baptiste Kempf

playlist: fix missing NULL test

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e97b461fe1f64797e4233170685bc3a60869a1b
---

 src/playlist/tree.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/playlist/tree.c b/src/playlist/tree.c
index 4d589c6..e8a99ca 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -68,6 +68,8 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
 
     p_new_input = input_item_NewExt( NULL, psz_name, -1, ITEM_TYPE_NODE,
                                      ITEM_NET_UNKNOWN );
+    if( !p_new_input )
+        return NULL;
     p_item = playlist_ItemNewFromInput( p_playlist, p_new_input );
     vlc_gc_decref( p_new_input );
 



More information about the vlc-commits mailing list