summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-20 20:59:35 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-20 20:59:35 +0000
commit910fd6a687db751a7b95829c2b028d6c5d60c3e8 (patch)
tree1693320bb77a116af58449ce328c9d24144433f9 /lib/libalpm/handle.c
parent9d4713e2a3b85f3d9d50d543928847f69c395dc7 (diff)
downloadpacman-910fd6a687db751a7b95829c2b028d6c5d60c3e8.tar.xz
the library must provide default values for main options
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 8d220ada..28f07507 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -76,6 +76,9 @@ pmhandle_t *handle_new()
handle->access = PM_ACCESS_RW;
#endif
+ handle->dbpath = strdup(PM_DBPATH);
+ handle->cachedir = strdup(PM_CACHEDIR);
+
return(handle);
}