Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 12:44:01 -0500
committerDan McGee <dan@archlinux.org>2011-06-03 12:44:01 -0500
commit307a6de17a3bca9f8666b33aa3fb9a8dd88c300b (patch)
treee6d4c595be6dec9b4fe286a6733eb866c9a5df50 /lib/libalpm/alpm.c
parent4015b23e8ef1e5a0e8d103ffefca0ffc4ad9e6c0 (diff)
Remove global handle from some package and db code
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 17fe5cd8..2da3432f 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -54,7 +54,7 @@ int SYMEXPORT alpm_initialize(void)
if(handle == NULL) {
RET_ERR(PM_ERR_MEMORY, -1);
}
- if(_alpm_db_register_local() == NULL) {
+ if(_alpm_db_register_local(handle) == NULL) {
/* error code should be set */
_alpm_handle_free(handle);
handle = NULL;