From 4d99340dfecac946038515e5f681be6d37357df7 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 8 Sep 2011 06:58:31 +0000 Subject: [PATCH] lolunit: fix an uninitialised member in TestCase. --- src/lol/unit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lol/unit.h b/src/lol/unit.h index 4fc9d213..51e227a5 100644 --- a/src/lol/unit.h +++ b/src/lol/unit.h @@ -81,8 +81,9 @@ public: static void AddTestCase(TestCase *that, char const *name, void (FixtureClass::*fun)()) { - that->m_testname = name; that->m_fun = fun; + that->m_testname = name; + that->m_next = NULL; GetOrSetTestCase(that); } };