summaryrefslogtreecommitdiff
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-07 13:34:30 -0500
committerDan McGee <dan@archlinux.org>2011-06-09 14:24:45 -0500
commit7d27cf8364b9c5d9a8d89017173f8c88d40cedd5 (patch)
tree4a313e52acfd978a2d53ece7281c9b1dba8674bf /src/pacman/conf.c
parent24000b83c9a9ba2f25a46914d2919293dc865a2e (diff)
Require handle for alpm_db_register_sync()
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index c52c6044..1ee0444d 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -564,7 +564,7 @@ static int _parseconfig(const char *file, int parse_options,
pm_printf(PM_LOG_DEBUG, "config: new section '%s'\n", name);
/* if we are not looking at the options section, register a db */
if(!parse_options && strcmp(name, "options") != 0) {
- db = alpm_db_register_sync(name);
+ db = alpm_db_register_sync(config->handle, name);
if(db == NULL) {
pm_printf(PM_LOG_ERROR, _("could not register '%s' database (%s)\n"),
name, alpm_strerrorlast());