lib/transaction_sortdeps.c: CID 62717 (NULL pointer dereference)

This commit is contained in:
Juan RP 2014-10-07 07:45:20 +02:00
parent 8c5ef42935
commit fcf464d2fa

View File

@ -345,6 +345,8 @@ xbps_transaction_sort(struct xbps_handle *xhp)
pkgdep_entries);
}
}
if (pd == NULL)
continue;
/*
* Packages that don't have deps go at head, because
* it doesn't matter.