aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/package.c b/src/package.c
index e2ee2ee..708dcdd 100644
--- a/src/package.c
+++ b/src/package.c
@@ -477,8 +477,7 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
struct dirent *file;
slapt_regex_t *ip_regex = NULL,
*compressed_size_reg = NULL,
- *uncompressed_size_reg = NULL,
- *location_regex = NULL;
+ *uncompressed_size_reg = NULL;
struct slapt_pkg_list *list = NULL;
size_t pls = 1;
@@ -493,9 +492,6 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
if ((uncompressed_size_reg = slapt_init_regex(SLAPT_PKG_LOG_SIZEU_PATTERN)) == NULL) {
exit(EXIT_FAILURE);
}
- if ((location_regex = slapt_init_regex(SLAPT_PKG_LOCATION_PATTERN)) == NULL) {
- exit(EXIT_FAILURE);
- }
pkg_log_dirname = slapt_gen_package_log_dir_name();
@@ -680,7 +676,6 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
free(pkg_log_dirname);
slapt_free_regex(compressed_size_reg);
slapt_free_regex(uncompressed_size_reg);
- slapt_free_regex(location_regex);
list->free_pkgs = SLAPT_TRUE;