From: Sage Weil Date: Wed, 4 Jul 2012 01:51:02 +0000 (-0700) Subject: rgw: initialize fields of RGWObjEnt X-Git-Tag: v0.49~20^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6646e891ff0bd31c935d1ce0870367b1e086ddfd;p=ceph.git rgw: initialize fields of RGWObjEnt This fixes various valgrind warnings triggered by the s3test test_object_create_unreadable. Signed-off-by: Sage Weil --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 1e46c5fcaf58..22f69f45ac77 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -621,6 +621,8 @@ struct RGWObjEnt { string etag; string content_type; + RGWObjEnt() : size(0), mtime(0) {} + void clear() { // not clearing etag name=""; size = 0;