diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-11 17:02:51 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-20 13:22:44 +0100 |
commit | d700b874c344a19bfef4abad2bf0dd293e93c6d6 (patch) | |
tree | 7304994e111d54809d03ebd806e46f05ca7ce991 /src | |
parent | dee32d6f7f2ea70f9c67b9f1557eaa2f56fb9dc9 (diff) |
Resizing before initializing values in vector.
Diffstat (limited to 'src')
-rw-r--r-- | src/cachemanager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cachemanager.cc b/src/cachemanager.cc index 9536cdf..d047d66 100644 --- a/src/cachemanager.cc +++ b/src/cachemanager.cc @@ -62,10 +62,10 @@ void CacheManager::init(size_t poolsize) localcachepos[i] = 0; } + localcache.resize(poolsize); for(size_t i = 0; i < poolsize; i++) { localcache[i] = NULL; } - localcache.resize(poolsize); running = true; run(); |