Fix skipping directories in uci_list_config_files
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 22 Nov 2016 15:50:24 +0000 (16:50 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 23 Nov 2016 19:40:26 +0000 (20:40 +0100)
commit49ec6efbdac4819033d34f08927d795f83a3932d
treeb40b57ae6d74c3a3c12e0888e59ba13243778a5a
parentc203c2f9009a322e5e774ff8cd32bac2fa3b7961
Fix skipping directories in uci_list_config_files

Don't create a hole in the array of configs if there's a directory. Such
a hole would be mistaken for the end of the array.

Signed-off-by: Michal 'vorner' Vaner <michal.vaner@nic.cz>
file.c