From 6a5370b634c6b01b5c76c9577e1ca4007dbcc8bd Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 5 Jun 2012 19:15:59 -0400 Subject: check proper variable for NULL Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/diskspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c index 1fc297ed..a80a62b6 100644 --- a/lib/libalpm/diskspace.c +++ b/lib/libalpm/diskspace.c @@ -343,7 +343,7 @@ int _alpm_check_downloadspace(alpm_handle_t *handle, const char *cachedir, } cachedir_mp = match_mount_point(mount_points, cachedir); - if(cachedir == NULL) { + if(cachedir_mp == NULL) { _alpm_log(handle, ALPM_LOG_ERROR, _("could not determine cachedir mount point %s\n"), cachedir); error = 1; -- cgit v1.2.3-70-g09d2