boot_loader: Init state to NULL before iterating

Should fix a gcc2 build error, plus is more correct.

It is a crime that C and C++ do not initialize things. Go and Rust fixed that.
This commit is contained in:
Ryan Leavengood 2019-08-13 17:22:21 -04:00
parent 5f255c64dc
commit 7893e1249e
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ PackageVolumeInfo::LoadOldStates() {
fStates.Sort(&PackageVolumeState::IsNewer);
// initialize the old states
PackageVolumeState* state;
PackageVolumeState* state = NULL;
status_t error;
for (state = fStates.GetNext(state); state != NULL;) {
PackageVolumeState* nextState = fStates.GetNext(state);