git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4e5fd4
)
playlist_NodeCreate(): fix a potential segfault
author
Rafaël Carré
<funman@videolan.org>
Thu, 18 Oct 2007 14:14:58 +0000
(14:14 +0000)
committer
Rafaël Carré
<funman@videolan.org>
Thu, 18 Oct 2007 14:14:58 +0000
(14:14 +0000)
src/playlist/tree.c
patch
|
blob
|
history
diff --git
a/src/playlist/tree.c
b/src/playlist/tree.c
index
4b76f29
..
de0c3f0
100644
(file)
--- a/
src/playlist/tree.c
+++ b/
src/playlist/tree.c
@@
-60,9
+60,9
@@
playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
p_input = input_ItemNewWithType( VLC_OBJECT(p_playlist), NULL, psz_name,
0, NULL, -1, ITEM_TYPE_NODE );
p_item = playlist_ItemNewFromInput( VLC_OBJECT(p_playlist), p_input );
- p_item->i_children = 0;
if( p_item == NULL ) return NULL;
+ p_item->i_children = 0;
ARRAY_APPEND(p_playlist->all_items, p_item);