[vlc-commits] directory access: avoid useless strdup

Rafaël Carré git at videolan.org
Sun Nov 13 22:07:05 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Nov 13 16:06:50 2011 -0500| [0cef084bdfb2acca795e72f2cd9ade638fa07e52] | committer: Rafaël Carré

directory access: avoid useless strdup

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

 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 eff8d57..8630fa9 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 = strdup ("");
+    p_sys->xspf_ext = NULL;
 
     /* Handle mode */
     char *psz = var_InheritString (p_access, "recursive");



More information about the vlc-commits mailing list