diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-03 19:44:01 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-03 19:44:01 +0200 |
commit | 307a6de17a3bca9f8666b33aa3fb9a8dd88c300b (patch) | |
tree | e6d4c595be6dec9b4fe286a6733eb866c9a5df50 /lib/libalpm/alpm.c | |
parent | 4015b23e8ef1e5a0e8d103ffefca0ffc4ad9e6c0 (diff) | |
download | pacman-307a6de17a3bca9f8666b33aa3fb9a8dd88c300b.tar.gz pacman-307a6de17a3bca9f8666b33aa3fb9a8dd88c300b.tar.xz |
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.c | 2 |
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; |