mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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:
parent
527ae7092d
commit
c52bb7030c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user