packagefs: Volume::_ChangeActivation(): Check 0 request size

This commit is contained in:
Ingo Weinhold 2013-04-08 17:45:24 +02:00
parent bb88feaa3a
commit 2508cd615f

View File

@ -1362,6 +1362,9 @@ Volume::_LoadPackage(const char* name, Package*& _package)
status_t
Volume::_ChangeActivation(ActivationChangeRequest& request)
{
if (request.CountItems() == 0)
return B_OK;
// first check the request
int32 newPackageCount = 0;
int32 oldPackageCount = 0;