summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2013-09-02 20:16:23 +0000
committerJason Woodward2013-09-02 20:16:23 +0000
commit5cb4555dc0b87217d782cd6f55aab128992189d4 (patch)
treea23aeb6b57e506783a9b1bcb8f4837f09831fe0c
parent27d3d12477276ecde0a82705bb575d84d98adf4f (diff)
downloadslapt-get-5cb4555dc0b87217d782cd6f55aab128992189d4.tar.gz
exit on failure to compile regex
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index f4c83fd..ce4534c 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)
- return matches;
+ exit(EXIT_FAILURE);
for (i = 0; i < list->pkg_count; i++ ) {