Skip to content
Permalink
Browse files

Merge pull request #7797 from stenzek/chunkfile

ChunkFile: Don't access element zero of empty container
  • Loading branch information...
Tilka committed Feb 10, 2019
2 parents e030a48 + cecefa2 commit 3a36f738cf325374bb83924df5db14ea69e54a83
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/Common/ChunkFile.h
@@ -262,7 +262,8 @@ class PointerWrap
Do(size);
container.resize(size);

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

template <typename T>

0 comments on commit 3a36f73

Please sign in to comment.
You can’t perform that action at this time.