ar: fix a regression: "ar t arch.a" stopped shoting files

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2010-04-15 16:55:04 -07:00 committed by Denys Vlasenko
parent c2d413ba74
commit 36dcf4e516

View File

@ -235,7 +235,8 @@ int ar_main(int argc UNUSED_PARAM, char **argv)
: O_RDONLY
);
archive_handle->filter = filter_accept_list;
if (*argv)
archive_handle->filter = filter_accept_list;
while (*argv) {
llist_add_to_end(&archive_handle->accept, *argv++);
}