removed the condition in alpm_db_set_servers since FREELIST is NULL safe

Signed-off-by: Barbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Barbu Paul - Gheorghe 2012-07-31 21:51:31 +03:00 committed by Dan McGee
parent 527ae7092d
commit c52bb7030c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}