diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-01-12 11:25:39 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-02-22 09:44:42 -0600 |
commit | b19347d04338fbf802d7381b8faf1b9e589f683b (patch) | |
tree | 3b10cd6553381c5ae104b879363f551c1fb68990 /src/import/hwpf/fapi2/include/variable_buffer.H | |
parent | 6070285552c1cb88e5f9975eac6d4734a644544f (diff) | |
download | talos-hostboot-b19347d04338fbf802d7381b8faf1b9e589f683b.tar.gz talos-hostboot-b19347d04338fbf802d7381b8faf1b9e589f683b.zip |
variable_buffer uninitialized error
-Update code to initialize the variable where its declared.
Change-Id: I037b31ebf1b4f08f734ab65a45e1bc70ca016fc9
RTC:144425
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23240
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Brian Silver <bsilver@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24520
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/include/variable_buffer.H')
-rw-r--r-- | src/import/hwpf/fapi2/include/variable_buffer.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/hwpf/fapi2/include/variable_buffer.H b/src/import/hwpf/fapi2/include/variable_buffer.H index 6ae19e1c1..67de22c5c 100644 --- a/src/import/hwpf/fapi2/include/variable_buffer.H +++ b/src/import/hwpf/fapi2/include/variable_buffer.H @@ -7,7 +7,7 @@ /* */ /* EKB Project */ /* */ -/* COPYRIGHT 2012,2015 */ +/* COPYRIGHT 2012,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -1223,7 +1223,7 @@ template< typename OT> inline OT variable_buffer::get(const bits_type i_offset) { // Get is just an extract. - OT l_tmp; + OT l_tmp = OT(0); extract(l_tmp, parameterTraits<OT>::bit_length() * i_offset, parameterTraits<OT>::bit_length()); return l_tmp; } |