<div dir="ltr">Hi,<div><br></div><div>Thanks for noticing !</div><div><br></div><div>Regards,</div><div>Lta</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 7:31 PM, Matthias Keiser <span dir="ltr"><<a href="mailto:matthias@tristan-inc.com" target="_blank">matthias@tristan-inc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 modules/access/directory.c | 14 ++++++++++----<br>
 1 file changed, 10 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/modules/access/directory.c b/modules/access/directory.c<br>
index ef2a6a3..f4c6107 100644<br>
--- a/modules/access/directory.c<br>
+++ b/modules/access/directory.c<br>
@@ -186,10 +186,16 @@ static int directory_open (directory *p_dir, char *psz_entry, DIR **handle)<br>
     }<br>
 #else<br>
     char *path;<br>
-    if (asprintf (&path, "%s/%s", current->path, entry) == -1)<br>
-        goto ENTRY_EACCESS;<br>
-    if ((*handle = vlc_opendir (path)) == NULL)<br>
-        goto ENTRY_ENOTDIR;<br>
+    if (asprintf (&path, "%s/%s", p_dir->path, psz_entry) == -1)<br>
+        return ENTRY_EACCESS;<br>
+<br>
+    *handle = vlc_opendir (path);<br>
+<br>
+    free(path);<br>
+<br>
+    if (*handle == NULL) {<br>
+        return ENTRY_ENOTDIR;<br>
+    }<br>
 #endif<br>
<br>
     return ENTRY_DIR;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.5.2 (Apple Git-48)<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br></div>