Merge "[incremental native lib] skip writing to zero byte files" into rvc-dev am: 9cce14eb0e

Change-Id: Id6b2b1171d9cedd3791cde042c67885f7c883e04
This commit is contained in:
Yurii Zubrytskyi
2020-03-19 06:34:41 +00:00
committed by Automerger Merge Worker

View File

@@ -1170,6 +1170,10 @@ bool IncrementalService::configureNativeBinaries(StorageId storage, std::string_
// If one lib file fails to be created, abort others as well
break;
}
// If it is a zero-byte file, skip data writing
if (uncompressedLen == 0) {
continue;
}
// Write extracted data to new file
std::vector<uint8_t> libData(uncompressedLen);