Merge pull request #7797 from stenzek/chunkfile

ChunkFile: Don't access element zero of empty container
This commit is contained in:
Tilka 2019-02-10 23:05:35 +00:00 committed by GitHub
commit 3a36f738cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -262,6 +262,7 @@ private:
Do(size); Do(size);
container.resize(size); container.resize(size);
if (size > 0)
DoArray(&container[0], size); DoArray(&container[0], size);
} }