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 3a36f73
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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.