Minor variable fix

This commit is contained in:
Jack Andersen 2016-06-08 15:26:29 -10:00
parent ad784966e9
commit 57bb631f9b
1 changed files with 1 additions and 1 deletions

View File

@ -1692,7 +1692,7 @@ ContainerRegistry::LoadContainer(const char* path, Type& typeOut)
fp = fopen(sampPath, "rb");
size_t sampLen = FileLength(fp);
if (!sampPath)
if (!sampLen)
return ret;
std::unique_ptr<uint8_t[]> samp(new uint8_t[sampLen]);
fread(samp.get(), 1, sampLen, fp);