summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorBarbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com>2012-07-31 21:51:31 +0300
committerDan McGee <dan@archlinux.org>2012-08-07 20:56:57 -0500
commitc52bb7030c2f04a2e36657042ba54d5c94de1bbf (patch)
tree09143314f4d03647dc7ac93109080f8df54838ee /lib/libalpm
parent527ae7092d98ff11c10ec92831e1297e33e946cf (diff)
downloadpacman-c52bb7030c2f04a2e36657042ba54d5c94de1bbf.tar.xz
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>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
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;
}