diff options
| -rw-r--r-- | lib/libalpm/handle.c | 3 | ||||
| -rw-r--r-- | src/pacman/pacman.c | 6 | 
2 files changed, 3 insertions, 6 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);  } diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 82765342..73f8c637 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -148,12 +148,6 @@ int main(int argc, char *argv[])  	if(parseconfig(config->configfile, config) == -1) {  		cleanup(1);  	} -	if(config->dbpath == NULL) { -		config->dbpath = strdup(PM_DBPATH); -	} -	if(config->cachedir == NULL) { -		config->cachedir = strdup(PM_CACHEDIR); -	}  	/* set library parameters */  	if(alpm_set_option(PM_OPT_LOGMASK, (long)config->debug) == -1) {  | 
