]> granicus.if.org Git - pdns/commitdiff
move statbag so static initialisation happens early enough for packetcache; thanks...
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 16 Feb 2015 12:22:15 +0000 (13:22 +0100)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 16 Feb 2015 13:02:19 +0000 (14:02 +0100)
pdns/test-nameserver_cc.cc
pdns/testrunner.cc

index e24065e70806f1d11ea921c77ce003d6f7346f91..8417b5532d19bc800c4c93df7fe9d51ffb8bc64b 100644 (file)
@@ -9,7 +9,6 @@
 #include <utility>
 
 extern vector<ComboAddress> g_localaddresses;
-StatBag S;
 
 ArgvMap &arg()
 {
index f27a6c3d1d82310f660060e1d6d8bef959a34a5f..15a9d43aa4e297de57cbbe5e72384865857406f2 100644 (file)
@@ -3,6 +3,7 @@
 #define BOOST_TEST_MODULE unit
 
 #include "packetcache.hh"
+StatBag S;
 PacketCache PC;
 
 #include <boost/test/unit_test.hpp>