1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00

filecache_find_url: dereference the 'filebase' pointer

Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Ryo Munakata 2014-07-14 19:15:40 +09:00 committed by Allan McRae
parent 2025279eb6
commit 7c75564af9

View File

@ -652,7 +652,7 @@ static char *filecache_find_url(alpm_handle_t *handle, const char *url)
}
filebase++;
if(filebase == '\0') {
if(*filebase == '\0') {
return NULL;
}