index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2009-06-06 11:03:29 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-06-08 20:02:17 -0500 |
commit | aa579b843899ccba093f83faa942599ce1110c24 (patch) | |
tree | fceb0e56adfb20ed3b7ebdb41fedb92bfe60d75a /lib/libalpm/dload.c | |
parent | 19b8b638851713da64dd2aa7ff31e911ffe925cd (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 2 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 5b0a691f..aec0b5ca 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -388,6 +388,8 @@ int _alpm_download_single_file(const char *filename, alpm_list_t *i; int ret = -1; + ASSERT(servers != NULL, RET_ERR(PM_ERR_SERVER_NONE, -1)); + for(i = servers; i; i = i->next) { const char *server = i->data; char *fileurl = NULL; |