summaryrefslogtreecommitdiff
path: root/src/cachemanager.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 17:02:51 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-20 13:22:44 +0100
commitd700b874c344a19bfef4abad2bf0dd293e93c6d6 (patch)
tree7304994e111d54809d03ebd806e46f05ca7ce991 /src/cachemanager.cc
parentdee32d6f7f2ea70f9c67b9f1557eaa2f56fb9dc9 (diff)
Resizing before initializing values in vector.
Diffstat (limited to 'src/cachemanager.cc')
-rw-r--r--src/cachemanager.cc2
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();