summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2013-11-23 11:53:28 -0500
committerJason Woodward2013-11-23 11:53:28 -0500
commit2145fc4474199a52ecb87b0f8558ae2b553e7b7b (patch)
tree49564b8188eb489cb87c036a7059545b23266683
parent5cb4555dc0b87217d782cd6f55aab128992189d4 (diff)
downloadslapt-get-2145fc4474199a52ecb87b0f8558ae2b553e7b7b.tar.gz
Revert "exit on failure to compile regex"
This reverts commit 5cb4555dc0b87217d782cd6f55aab128992189d4. Breaks libslapt users
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index ce4534c..f4c83fd 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1315,7 +1315,7 @@ slapt_pkg_list_t *slapt_search_pkg_list(slapt_pkg_list_t *list,
matches = slapt_init_pkg_list();
if ((search_regex = slapt_init_regex(pattern)) == NULL)
- exit(EXIT_FAILURE);
+ return matches;
for (i = 0; i < list->pkg_count; i++ ) {