From 7c04fe95ac822f435790aafeeeb9a91dd82f87be Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sun, 24 Apr 2005 20:11:10 +0000 Subject: added support for the package reason field --- lib/libalpm/alpm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 8f5a1649..20bb516c 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -69,7 +69,7 @@ int alpm_initialize(char *root) handle = handle_new(); if(handle == NULL) { - RET_ERR(PM_ERR_MEM_ERROR, -1); + RET_ERR(PM_ERR_MEMORY, -1); } /* lock db */ @@ -111,10 +111,8 @@ int alpm_release() } /* and also sync ones */ for(i = handle->dbs_sync; i; i = i->next) { - if(i->data) { - db_close(i->data); - i->data = NULL; - } + db_close(i->data); + i->data = NULL; } FREEHANDLE(handle); -- cgit v1.2.3-54-g00ecf