]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Initialize base_obj in constructor (cppcheck report)
authorMukund Sivaraman <muks@isc.org>
Thu, 13 Jun 2013 07:52:18 +0000 (13:22 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 13 Jun 2013 07:52:18 +0000 (13:22 +0530)
src/lib/python/isc/datasrc/zonetable_accessor_python.cc

index 353f7b5051c4ac9dfe70bdf777f6aa12cb3fbb6d..d0583b9a5a1231c62fc3074dfa26f8f89d86fbe4 100644 (file)
@@ -34,7 +34,11 @@ namespace {
 // The s_* Class simply covers one instantiation of the object
 class s_ZoneTableAccessor : public PyObject {
 public:
-    s_ZoneTableAccessor() : cppobj(ConstZoneTableAccessorPtr()) {};
+    s_ZoneTableAccessor() :
+        cppobj(ConstZoneTableAccessorPtr()),
+        base_obj(NULL)
+    {}
+
     ConstZoneTableAccessorPtr cppobj;
     // This is a reference to a base object; if the object of this class
     // depends on another object to be in scope during its lifetime,