Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-09-27 10:46:02 +0400
committerGlenn L McGrath <bug1@ihug.co.nz>2002-09-27 10:46:02 +0400
commit2e41d0cb777e6af086b45555551780e02ad13f46 (patch)
treea53d807aeb25003e5a8ea22461079a10b5238e4d /archival/libunarchive/filter_accept_all.c
parenta47a3eada6ada1168205f6684e5c5a5c23d3558b (diff)
Fix compress support and prevent a segfault
Diffstat (limited to 'archival/libunarchive/filter_accept_all.c')
-rw-r--r--archival/libunarchive/filter_accept_all.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/archival/libunarchive/filter_accept_all.c b/archival/libunarchive/filter_accept_all.c
index 0471ccef0..2838ea1f2 100644
--- a/archival/libunarchive/filter_accept_all.c
+++ b/archival/libunarchive/filter_accept_all.c
@@ -6,5 +6,9 @@
*/
extern char filter_accept_all(const llist_t *accept_list, const llist_t *reject_list, const char *key)
{
- return(EXIT_SUCCESS);
+ if (key) {
+ return(EXIT_SUCCESS);
+ } else {
+ return(EXIT_FAILURE);
+ }
}