]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add missing ctor, init parent
authorSage Weil <sage@inktank.com>
Fri, 24 Aug 2012 23:25:01 +0000 (16:25 -0700)
committerSage Weil <sage@inktank.com>
Fri, 31 Aug 2012 20:11:04 +0000 (13:11 -0700)
Coverity cid 717385
Signed-off-by: Sage Weil <sage@inktank.com>
src/rgw/rgw_xml.h

index bb59d5ae68cbd035a3a0a2aeb26bb15c0ab82972..5004e98bcf21f973c9e3ee3080305071339d900a 100644 (file)
@@ -40,6 +40,9 @@ protected:
   multimap<string, XMLObj *> children;
   map<string, string> attr_map;
 public:
+
+  XMLObj() : parent(NULL) {}
+
   virtual ~XMLObj();
   bool xml_start(XMLObj *parent, const char *el, const char **attr);
   virtual bool xml_end(const char *el);