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
1 changed files with 1 additions and 1 deletions

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