summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRyo Munakata <ryomnktml@gmail.com>2014-07-14 19:15:40 +0900
committerAllan McRae <allan@archlinux.org>2014-08-04 14:23:58 +1000
commit7c75564af933ad5258b2e2bee6ce63b9bcbf6561 (patch)
treeca0c1c8126f57b70740b3eb11f12f2c1961d96e2 /lib
parent2025279eb64c397e408baab7ff686624604f415a (diff)
downloadpacman-7c75564af933ad5258b2e2bee6ce63b9bcbf6561.tar.xz
filecache_find_url: dereference the 'filebase' pointer
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/dload.c2
1 files changed, 1 insertions, 1 deletions
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;
}