sample: fix klocwork uninitialized issue (#5859)

This commit is contained in:
Kate Generalova
2021-05-28 08:28:52 +03:00
committed by GitHub
parent ef5ded7878
commit d44ae0d948

View File

@@ -149,7 +149,7 @@ int main(int argc, char* argv[]) {
validImageNames.push_back(i);
}
}
if (imagesData.empty())
if (imagesData.empty() || validImageNames.empty())
throw std::logic_error("Valid input images were not found!");
/** Setting batch size using image count **/