]> 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>
Wed, 4 Jul 2012 14:27:32 +0000 (07:27 -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 31b1113a339597cb8ed5560ca7a26c2de0935537..aa525718e86471f384c1145380553f4e2e8a4992 100644 (file)
@@ -611,6 +611,8 @@ struct RGWObjEnt {
   string etag;
   string content_type;
 
+  RGWObjEnt() : size(0), mtime(0) {}
+
   void clear() { // not clearing etag
     name="";
     size = 0;