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:
Juan RP 2010-04-28 18:31:37 +02:00
parent abe9e91e8b
commit 11de88d122

View File

@ -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)