summaryrefslogtreecommitdiff
path: root/src/cachemanager.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 17:02:51 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 17:02:51 +0200
commit4d82b13f332ea8c3af3493e9ee2ac9cacdfa7f22 (patch)
treeb2462ee8586cd79c4cee005288c177d80fcd548e /src/cachemanager.cc
parentbe990c6057033c298dd7d69dbf52872833534b85 (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();