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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue