xbps-bin/install.c: fix a NULL pointer dereference in error path, found by
the clang analyzer. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100428163137-hs9ac0rm47sz9k14
This commit is contained in:
parent
abe9e91e8b
commit
11de88d122
@ -627,7 +627,7 @@ xbps_exec_transaction(bool yes)
|
||||
|
||||
trans = calloc(1, sizeof(struct transaction));
|
||||
if (trans == NULL)
|
||||
goto out;
|
||||
return rv;
|
||||
|
||||
trans->dict = xbps_repository_get_transaction_dict();
|
||||
if (trans->dict == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user