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
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ int _alpm_check_downloadspace(alpm_handle_t *handle, const char *cachedir,
|
||||||
}
|
}
|
||||||
|
|
||||||
cachedir_mp = match_mount_point(mount_points, 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"),
|
_alpm_log(handle, ALPM_LOG_ERROR, _("could not determine cachedir mount point %s\n"),
|
||||||
cachedir);
|
cachedir);
|
||||||
error = 1;
|
error = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue