index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-12-05 07:00:22 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-12-05 07:00:22 +0000 |
commit | 2116ce78fb2e28c15f6f97e98ab88967b8a2dcec (patch) | |
tree | fbcbc01dc2866fb393a51b76fd8ef4f8269818f1 /lib/libalpm/handle.c | |
parent | 8028a1124abd585e5570cce95e8901eee15237be (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 8 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index ddc8d77d..4e0ffbec 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -152,14 +152,14 @@ void alpm_option_set_root(const char *root) void alpm_option_set_dbpath(const char *dbpath) { - if(handle->dbpath) FREE(handle->dbpath); - if(dbpath) handle->dbpath = strdup(dbpath); + if(handle->dbpath) FREE(handle->dbpath); + if(dbpath) handle->dbpath = strdup(dbpath); } void alpm_option_set_cachedir(const char *cachedir) { - if(handle->cachedir) FREE(handle->cachedir); - if(cachedir) handle->cachedir = strdup(cachedir); + if(handle->cachedir) FREE(handle->cachedir); + if(cachedir) handle->cachedir = strdup(cachedir); } void alpm_option_set_logfile(const char *logfile) |