diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-16 03:55:04 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-16 03:55:04 +0400 |
commit | 36dcf4e516baac2aa454badc0686c4212dc997fe (patch) | |
tree | ac44b4686bd430f2b4254ddb84eac0a6b6be6111 /archival/ar.c | |
parent | c2d413ba74bd140043da80c9418c6be96056afb2 (diff) |
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>
Diffstat (limited to 'archival/ar.c')
-rw-r--r-- | archival/ar.c | 3 |
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++); } |