[vlc-commits] playlist/item: playlist_InsertInputItemTree: simplify

Filip Roséen git at videolan.org
Thu May 18 17:51:11 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:01:08 2017 +0200| [09b7dca92094b797ad9d65dd1164e389c48f0ad1] | committer: Rémi Denis-Courmont

playlist/item: playlist_InsertInputItemTree: simplify

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.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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 8d27b0fe57..8db6acb2fd 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 } );
 }
 
 



More information about the vlc-commits mailing list