From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 13:36:04 +0000 (+0100) Subject: rgw/rgw_op.h: init scalar field in ctor X-Git-Tag: v11.1.0~327^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3cdff61715393884387024c6fac9c3595c4eb9f;p=ceph.git rgw/rgw_op.h: init scalar field in ctor Fix for: CID 1351689 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member total_size is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index 31f6b7746580..0f4f6da792de 100644 --- a/src/rgw/rgw_op.h +++ b/src/rgw/rgw_op.h @@ -667,7 +667,7 @@ struct RGWSLOInfo { char *raw_data; int raw_data_len; - RGWSLOInfo() : raw_data(NULL), raw_data_len(0) {} + RGWSLOInfo() : total_size(0), raw_data(NULL), raw_data_len(0) {} ~RGWSLOInfo() { free(raw_data); }