index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-01-28 17:41:15 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-29 12:13:56 -0600 |
commit | ef86da97f54a90ee4ba3ba8ea7963135e7bae8ed (patch) | |
tree | 99c492d170d3780ac2530413031593cc248a8fd3 /lib/libalpm/alpm.c | |
parent | 9b876fff09f2af10cba6824bec03d8fe3e167b5b (diff) |
-rw-r--r-- | lib/libalpm/alpm.c | 4 |
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 2a9f4605..7c3bfc26 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -54,6 +54,10 @@ int SYMEXPORT alpm_initialize(void) if(handle == NULL) { RET_ERR(PM_ERR_MEMORY, -1); } + if(_alpm_db_register_local() == NULL) { + /* error code should be set */ + return(-1); + } #ifdef ENABLE_NLS bindtextdomain("libalpm", LOCALEDIR); |