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:
parent
1d32934769
commit
6a5370b634
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user