summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_local.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 22:24:01 +0200
committerDan McGee <dan@archlinux.org>2011-06-07 18:37:05 +0200
commitfb4b422fc4567238332050b9a6c8c1cac2a8f091 (patch)
tree047457f6cadf5493406b0ca4fa8c60230481d92d /lib/libalpm/be_local.c
parent992fa50dfd4faba93e37364bded015ea04d1fe15 (diff)
downloadpacman-fb4b422fc4567238332050b9a6c8c1cac2a8f091.tar.gz
pacman-fb4b422fc4567238332050b9a6c8c1cac2a8f091.tar.xz
New signatures for alpm initialize and release
These new method signatures return and take handle objects to operate on so we can move away from the idea of one global handle in the API. There is also another important change and that deals with the setting of root and dbpaths. These are now done at initialization time instead of using setter methods. This allows the library to operate more safely knowing that paths won't change underneath it. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_local.c')
-rw-r--r--lib/libalpm/be_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index 64af4b95..3a0887d0 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -936,7 +936,7 @@ pmdb_t *_alpm_db_register_local(pmhandle_t *handle)
db = _alpm_db_new("local", 1);
if(db == NULL) {
- RET_ERR(PM_ERR_DB_CREATE, NULL);
+ return NULL;
}
db->ops = &local_db_ops;
db->handle = handle;