diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-22 15:54:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-22 15:54:05 +0200 |
commit | d52c9510fd3a9407044166360fe8b752fd841efc (patch) | |
tree | 7a8df296fc191db0af774c15af1aa94063bac5b5 | |
parent | 6ebb2b6b242fc4e66100f6ea64101eb75d2071e9 (diff) | |
download | busybox-w32-d52c9510fd3a9407044166360fe8b752fd841efc.tar.gz busybox-w32-d52c9510fd3a9407044166360fe8b752fd841efc.tar.bz2 busybox-w32-d52c9510fd3a9407044166360fe8b752fd841efc.zip |
trivial small speed optimization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/libarchive/filter_accept_reject_list.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/libarchive/filter_accept_reject_list.c b/archival/libarchive/filter_accept_reject_list.c index 39c811337..248374941 100644 --- a/archival/libarchive/filter_accept_reject_list.c +++ b/archival/libarchive/filter_accept_reject_list.c | |||
@@ -24,11 +24,13 @@ char FAST_FUNC filter_accept_reject_list(archive_handle_t *archive_handle) | |||
24 | if (reject_entry) { | 24 | if (reject_entry) { |
25 | return EXIT_FAILURE; | 25 | return EXIT_FAILURE; |
26 | } | 26 | } |
27 | accept_entry = find_list_entry2(archive_handle->accept, key); | ||
28 | 27 | ||
29 | /* Fail if an accept list was specified and the key wasnt in there */ | 28 | /* Fail if an accept list was specified and the key wasnt in there */ |
30 | if ((accept_entry == NULL) && archive_handle->accept) { | 29 | if (archive_handle->accept) { |
31 | return EXIT_FAILURE; | 30 | accept_entry = find_list_entry2(archive_handle->accept, key); |
31 | if (!accept_entry) { | ||
32 | return EXIT_FAILURE; | ||
33 | } | ||
32 | } | 34 | } |
33 | 35 | ||
34 | /* Accepted */ | 36 | /* Accepted */ |