mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
libalpm: set pm_errno correctly in alpm_trans_get_flags()
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
f888283910
commit
a479e0300b
@ -465,8 +465,8 @@ cleanup:
|
||||
int SYMEXPORT alpm_trans_get_flags()
|
||||
{
|
||||
/* Sanity checks */
|
||||
ASSERT(handle != NULL, return(-1));
|
||||
ASSERT(handle->trans != NULL, return(-1));
|
||||
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
|
||||
ASSERT(handle->trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
|
||||
|
||||
return handle->trans->flags;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user