Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-06-05 19:15:59 -0400
committerDan McGee <dan@archlinux.org>2012-06-25 23:01:28 -0500
commit6a5370b634c6b01b5c76c9577e1ca4007dbcc8bd (patch)
treed5aa1edf791a67885c93f098a86b74c5b074a942 /lib
parent1d32934769ebcf0ad32f0b8e8356e5fb0c7b8b2c (diff)
check proper variable for NULL
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/diskspace.c2
1 files changed, 1 insertions, 1 deletions
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;