ref: 4a37e3e2a0b6cfefd8fad181c1345d92e2fea320
parent: f08581c1d010ea95b8cfae686b5c0a64b32519f9
author: Johann <johannkoenig@google.com>
date: Wed Jun 7 07:27:26 EDT 2017
buffer.h: zero-init all values Change-Id: I18d90658bcd4365d49adcadd6954090b3b399aa8
--- a/test/buffer.h
+++ b/test/buffer.h
@@ -29,12 +29,14 @@
size_t right_padding, size_t bottom_padding)
: width_(width), height_(height), top_padding_(top_padding),
left_padding_(left_padding), right_padding_(right_padding),
- bottom_padding_(bottom_padding), raw_buffer_(NULL) {}
+ bottom_padding_(bottom_padding), padding_value_(0), stride_(0),
+ raw_size_(0), raw_buffer_(NULL) {}
Buffer(size_t width, size_t height, size_t padding)
: width_(width), height_(height), top_padding_(padding),
left_padding_(padding), right_padding_(padding),
- bottom_padding_(padding), raw_buffer_(NULL) {}
+ bottom_padding_(padding), padding_value_(0), stride_(0), raw_size_(0),
+ raw_buffer_(NULL) {}
~Buffer() { delete[] raw_buffer_; }