[vlc-commits] Revert "directory access: avoid useless strdup"

Rafaël Carré git at videolan.org
Sat Nov 19 23:08:23 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Nov 19 16:54:18 2011 -0500| [8a2ce299b33d99501e07dc9a6ace50f91b40a02e] | committer: Rafaël Carré

Revert "directory access: avoid useless strdup"

This reverts commit 0cef084bdfb2acca795e72f2cd9ade638fa07e52.

It broke playlist-tree

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

 modules/access/directory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/directory.c b/modules/access/directory.c
index 8630fa9..eff8d57 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -165,7 +165,7 @@ int DirInit (access_t *p_access, DIR *handle)
     p_sys->ignored_exts = var_InheritString (p_access, "ignore-filetypes");
     p_sys->header = true;
     p_sys->i_item_count = 0;
-    p_sys->xspf_ext = NULL;
+    p_sys->xspf_ext = strdup ("");
 
     /* Handle mode */
     char *psz = var_InheritString (p_access, "recursive");



More information about the vlc-commits mailing list