diff --git a/modules/access/directory.c b/modules/access/directory.c index 157099df9b..a6a044ba9f 100644 --- a/modules/access/directory.c +++ b/modules/access/directory.c @@ -163,8 +163,8 @@ input_item_t *DirRead(access_t *access) } /* Create an input item for the current entry */ - char *encoded= vlc_uri_encode(entry); - if (unlikely(entry == NULL)) + char *encoded = vlc_uri_encode(entry); + if (unlikely(encoded == NULL)) continue; char *uri;