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:
parent
5f255c64dc
commit
7893e1249e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user