[haiku-commits] haiku: hrev53372 - src/system/boot/loader

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 13 Aug 2019 17:23:59 -0400 (EDT)

hrev53372 adds 1 changeset to branch 'master'
old head: 5f255c64dcbd6a57e2c05a08334dcd8e738a377f
new head: 7893e1249ef18cf674c249503eea00aaf73d9c7f
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=7893e1249ef1+%5E5f255c64dcbd

----------------------------------------------------------------------------

7893e1249ef1: 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.

                                  [ Ryan Leavengood <leavengood@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53372
Commit:      7893e1249ef18cf674c249503eea00aaf73d9c7f
URL:         https://git.haiku-os.org/haiku/commit/?id=7893e1249ef1
Author:      Ryan Leavengood <leavengood@xxxxxxxxx>
Date:        Tue Aug 13 21:22:21 2019 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/system/boot/loader/package_support.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/system/boot/loader/package_support.cpp 
b/src/system/boot/loader/package_support.cpp
index a96e886d43..935d15b543 100644
--- a/src/system/boot/loader/package_support.cpp
+++ b/src/system/boot/loader/package_support.cpp
@@ -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);


Other related posts:

  • » [haiku-commits] haiku: hrev53372 - src/system/boot/loader - Ryan Leavengood