Skip to content

Commit

Permalink
Merge pull request #7797 from stenzek/chunkfile
Browse files Browse the repository at this point in the history
ChunkFile: Don't access element zero of empty container
  • Loading branch information
Tilka committed Feb 10, 2019
2 parents e030a48 + cecefa2 commit 3a36f73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Common/ChunkFile.h
Expand Up @@ -262,7 +262,8 @@ class PointerWrap
Do(size); Do(size);
container.resize(size); container.resize(size);


DoArray(&container[0], size); if (size > 0)
DoArray(&container[0], size);
} }


template <typename T> template <typename T>
Expand Down

0 comments on commit 3a36f73

Please sign in to comment.