diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 21:38:30 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 21:38:30 +0000 |
commit | e1eff42fe16c281e8fe659bbd86a067fa00d4088 (patch) | |
tree | 4362bd09349862bec099e77df39760f1be896d98 /src | |
parent | 47cd8c2323db84e796943f31ef858f47cf99e3a1 (diff) | |
download | pacman-e1eff42fe16c281e8fe659bbd86a067fa00d4088.tar.xz |
Added missing extern declaration
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/conf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 89389422..c5df8352 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -34,6 +34,7 @@ #define min(X, Y) ((X) < (Y) ? (X) : (Y)) +extern char *pmo_dbpath; extern list_t *pmo_holdpkg; extern char *pmo_proxyhost; extern unsigned short pmo_proxyport; @@ -189,10 +190,10 @@ int parseconfig(char *file) if(*ptr == '/') { ptr++; } - if(alpm_set_option(PM_OPT_DBPATH, (long)ptr) == -1) { - ERR(NL, "failed to set option DBPATH (%s)\n", alpm_strerror(pm_errno)); - return(1); + if(pmo_dbpath) { + FREE(pmo_dbpath); } + pmo_dbpath = strdup(ptr); vprint("config: dbpath: %s\n", ptr); } else if (!strcmp(key, "LOGFILE")) { if(alpm_set_option(PM_OPT_LOGFILE, (long)ptr) == -1) { |