mirror of
https://github.com/AxioDL/amuse.git
synced 2025-08-13 07:29:20 +00:00
Minor variable fix
This commit is contained in:
parent
ad784966e9
commit
57bb631f9b
@ -1692,7 +1692,7 @@ ContainerRegistry::LoadContainer(const char* path, Type& typeOut)
|
|||||||
|
|
||||||
fp = fopen(sampPath, "rb");
|
fp = fopen(sampPath, "rb");
|
||||||
size_t sampLen = FileLength(fp);
|
size_t sampLen = FileLength(fp);
|
||||||
if (!sampPath)
|
if (!sampLen)
|
||||||
return ret;
|
return ret;
|
||||||
std::unique_ptr<uint8_t[]> samp(new uint8_t[sampLen]);
|
std::unique_ptr<uint8_t[]> samp(new uint8_t[sampLen]);
|
||||||
fread(samp.get(), 1, sampLen, fp);
|
fread(samp.get(), 1, sampLen, fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user