sample: fix klocwork uninitialized issue (#5859)
This commit is contained in:
1 parent
ef5ded7878
commit
d44ae0d948
1 file changed
+1
-1
@@ -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 **/
|
||||
|
||||
Reference in new issue
Block a user