summaryrefslogtreecommitdiff
path: root/src/util/pactree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/pactree.c')
-rw-r--r--src/util/pactree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/pactree.c b/src/util/pactree.c
index e2210ea4..6c869426 100644
--- a/src/util/pactree.c
+++ b/src/util/pactree.c
@@ -97,11 +97,7 @@ static int alpm_local_init(void)
return -1;
}
- db_local = alpm_option_get_localdb();
- if(!db_local) {
- return 1;
- }
-
+ db_local = alpm_option_get_localdb(handle);
return 0;
}