diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2014-07-02 10:39:52 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-07-02 20:38:28 -0500 |
commit | ce5d000adc777eab31a578cf33dcaf97aa108517 (patch) | |
tree | 2e4320a042180d634221d50a0f816a036c84429b /src/usr | |
parent | 1ef46438da505e9fa13ad7331d11262a9f726de5 (diff) | |
download | talos-hostboot-ce5d000adc777eab31a578cf33dcaf97aa108517.tar.gz talos-hostboot-ce5d000adc777eab31a578cf33dcaf97aa108517.zip |
Fix uninitialized value in initfile compiler
Change-Id: Ib339a4f70b506f3007556036b8902b7a76ede613
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11946
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rwxr-xr-x | src/usr/hwpf/ifcompiler/initCompiler.C | 5 | ||||
-rwxr-xr-x | src/usr/hwpf/ifcompiler/initRpn.C | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/usr/hwpf/ifcompiler/initCompiler.C b/src/usr/hwpf/ifcompiler/initCompiler.C index ad17c3a19..cef35fc5f 100755 --- a/src/usr/hwpf/ifcompiler/initCompiler.C +++ b/src/usr/hwpf/ifcompiler/initCompiler.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2010,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -157,7 +159,6 @@ int main(int narg, char ** argv) } //cout << dbg << std::endl; printf("Generate Listing\n"); - // This builds a listing from the compiled binary sequence yyscomlist->listing(bin_seq, parsed.listing_ostream()); yyscomlist->attr_listing(bin_seq, parsed.attr_listing_ostream()); diff --git a/src/usr/hwpf/ifcompiler/initRpn.C b/src/usr/hwpf/ifcompiler/initRpn.C index 47c58f277..66e0637c8 100755 --- a/src/usr/hwpf/ifcompiler/initRpn.C +++ b/src/usr/hwpf/ifcompiler/initRpn.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2010,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -1312,7 +1314,7 @@ bool Rpn::resolve(SYMBOL_VAL_LIST & i_varlist) uint8_t Rpn::extract8(BINSEQ::const_iterator & bli) { - uint8_t val; + uint8_t val = 0; val += (uint8_t)(*bli++); return val; } @@ -1322,7 +1324,7 @@ uint8_t Rpn::extract8(BINSEQ::const_iterator & bli) uint16_t Rpn::extract16(BINSEQ::const_iterator & bli) { - uint16_t val; + uint16_t val = 0; val = ((uint16_t)(*bli++)) << 8; val += (uint16_t)(*bli++); return val; |