1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

check proper variable for NULL

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2012-06-05 19:15:59 -04:00 committed by Dan McGee
parent 1d32934769
commit 6a5370b634

View File

@ -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;