diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-06-06 01:15:59 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-06-26 06:01:28 +0200 |
commit | 6a5370b634c6b01b5c76c9577e1ca4007dbcc8bd (patch) | |
tree | d5aa1edf791a67885c93f098a86b74c5b074a942 /lib/libalpm | |
parent | 1d32934769ebcf0ad32f0b8e8356e5fb0c7b8b2c (diff) | |
download | pacman-6a5370b634c6b01b5c76c9577e1ca4007dbcc8bd.tar.gz pacman-6a5370b634c6b01b5c76c9577e1ca4007dbcc8bd.tar.xz |
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/libalpm')
-rw-r--r-- | lib/libalpm/diskspace.c | 2 |
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; |