diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-22 21:49:33 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-22 21:49:33 +0100 |
commit | 16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b (patch) | |
tree | d259cc5a0de95d478c3a21df549dbd90880147cd /lib/libalpm/db.c | |
parent | 78ffd98701b64bff74fc530db91ffc7e8768989a (diff) | |
download | pacman-16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b.tar.gz pacman-16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b.tar.xz |
improved _alpm_list_free handling
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r-- | lib/libalpm/db.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index a81d5406..437715e8 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -64,6 +64,7 @@ pmdb_t *_alpm_db_open(char *dbpath, char *treename, int mode) if(db->dir == NULL) { if(mode & DB_O_CREATE) { _alpm_log(PM_LOG_WARNING, "could not open database '%s' -- try creating it", treename); + _alpm_log(PM_LOG_DEBUG, "creating database '%s'", treename); if(mkdir(db->path, 0755) == 0) { db->dir = opendir(db->path); } @@ -83,8 +84,10 @@ pmdb_t *_alpm_db_open(char *dbpath, char *treename, int mode) return(db); } -void _alpm_db_close(pmdb_t *db) +void _alpm_db_close(void *data) { + pmdb_t *db = data; + if(db == NULL) { return; } |