]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initialize fields of RGWObjEnt
authorSage Weil <sage@inktank.com>
Wed, 4 Jul 2012 01:51:02 +0000 (18:51 -0700)
committerSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 23:43:07 +0000 (16:43 -0700)
This fixes various valgrind warnings triggered by the s3test
test_object_create_unreadable.

Signed-off-by: Sage Weil <sage@inktank.com>
src/rgw/rgw_common.h

index 1e46c5fcaf58a5187908f880a0c808cd8014dcfc..22f69f45ac7726b9cc48a34461a157b901878a90 100644 (file)
@@ -621,6 +621,8 @@ struct RGWObjEnt {
   string etag;
   string content_type;
 
+  RGWObjEnt() : size(0), mtime(0) {}
+
   void clear() { // not clearing etag
     name="";
     size = 0;