aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/ar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 90397474d..1b7b66a57 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -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++);
}