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:
parent
2025279eb6
commit
7c75564af9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user