[vlc-devel] [PATCH 01/11] playlist/item: playlist_InsertInputItemTree: simplify

Filip Roséen filip at atch.se
Thu May 18 12:01:08 CEST 2017


This changes gets rid of an unnecessary named variable, while also
wrapping the previously very long line so that it does not span across
80 cols.
---
 src/playlist/item.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/playlist/item.c b/src/playlist/item.c
index 71b58a49ea..2b932daf31 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -579,8 +579,8 @@ int playlist_InsertInputItemTree (
     playlist_t *p_playlist, playlist_item_t *p_parent,
     input_item_node_t *p_node, int i_pos, bool b_flat )
 {
-    playlist_item_t *p_first_leaf = NULL;
-    return RecursiveAddIntoParent ( p_playlist, p_parent, p_node, i_pos, b_flat, &p_first_leaf );
+    return RecursiveAddIntoParent( p_playlist, p_parent, p_node, i_pos, b_flat,
+                                   &(playlist_item_t*){ NULL } );
 }
 
 
-- 
2.12.2


More information about the vlc-devel mailing list