From c52bb7030c2f04a2e36657042ba54d5c94de1bbf Mon Sep 17 00:00:00 2001 From: Barbu Paul - Gheorghe Date: Tue, 31 Jul 2012 21:51:31 +0300 Subject: removed the condition in alpm_db_set_servers since FREELIST is NULL safe Signed-off-by: Barbu Paul - Gheorghe Signed-off-by: Dan McGee --- lib/libalpm/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 953f2af6..1f252abb 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -136,7 +136,7 @@ alpm_list_t SYMEXPORT *alpm_db_get_servers(const alpm_db_t *db) int SYMEXPORT alpm_db_set_servers(alpm_db_t *db, alpm_list_t *servers) { ASSERT(db != NULL, return -1); - if(db->servers) FREELIST(db->servers); + FREELIST(db->servers); db->servers = servers; return 0; } -- cgit v1.2.3-70-g09d2