commit | a03f9052e7324e827d7bdf03feb36fcbd08969e7 | [log] [tgz] |
---|---|---|
author | Max Bires <jbires@google.com> | Sun Jun 27 02:41:59 2021 -0700 |
committer | Max Bires <jbires@google.com> | Sun Jun 27 02:50:07 2021 -0700 |
tree | 0687dbbe2d11267f12c06296cc4484b1ae2062d6 | |
parent | 6e061db49f3565cfbc7c81bea8fe1b8aa27b75e1 [diff] |
Default initializing error_code_ to 0. In some environments and some c++ edge cases, an integer is not default initialized to 0 if not assigned. In Trusty it was consistently initializing to 01{16}. This causes problems when the isOk() call checks to see if the error code is still 0. Ignore-AOSP-First: Cherry-pick from AOSP Fixes: 192168662 Test: atest VtsHalRemotelyProvisionedComponentTargetTest Change-Id: If69cfe94346e16ac4fc36293729084968a3aaf7f