directory: flawed logic

This commit is contained in:
Rémi Denis-Courmont 2015-12-31 15:31:11 +02:00
parent 573c2015f2
commit 8ad73239be

View File

@ -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;