summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-07-03 18:51:02 -0700
committerSage Weil <sage@inktank.com>2012-07-06 16:43:07 -0700
commit6646e891ff0bd31c935d1ce0870367b1e086ddfd (patch)
treea5b36e50f97c1c7e4c25d5dd324be1738a10c4f2
parentb33553aae63f70ccba8e3d377ad3068c6144c99a (diff)
downloadceph-6646e891ff0bd31c935d1ce0870367b1e086ddfd.tar.gz
rgw: initialize fields of RGWObjEnt
This fixes various valgrind warnings triggered by the s3test test_object_create_unreadable. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/rgw/rgw_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index 1e46c5fcaf5..22f69f45ac7 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;