From 7c75564af933ad5258b2e2bee6ce63b9bcbf6561 Mon Sep 17 00:00:00 2001 From: Ryo Munakata Date: Mon, 14 Jul 2014 19:15:40 +0900 Subject: filecache_find_url: dereference the 'filebase' pointer Signed-off-by: Ryo Munakata Signed-off-by: Allan McRae --- lib/libalpm/dload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 88ea4279..c5a56b56 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -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; } -- cgit v1.2.3-70-g09d2