diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-01-12 11:25:39 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-01-27 23:38:04 -0600 |
commit | 2dbb83a926271df49228c65844cf9f5c063d22a7 (patch) | |
tree | e22bbb46e444dd77c6d56aa6fc711554655da338 /import/hwpf | |
parent | 81f7d005062149dde6ae9519f7e0b450de3577ac (diff) | |
download | talos-sbe-2dbb83a926271df49228c65844cf9f5c063d22a7.tar.gz talos-sbe-2dbb83a926271df49228c65844cf9f5c063d22a7.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/23711
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/hwpf')
-rw-r--r-- | import/hwpf/fapi2/include/variable_buffer.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/import/hwpf/fapi2/include/variable_buffer.H b/import/hwpf/fapi2/include/variable_buffer.H index 6ae19e1c..67de22c5 100644 --- a/import/hwpf/fapi2/include/variable_buffer.H +++ b/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; } |