Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6adbd4e7 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Fix a crash when parsing fastboot command-line arguments

Fix a crash when running "fastboot reboot bootloader"

Test: Manual run "fastboot reboot bootloader" and "fastboot reboot emergency"
Change-Id: I6d163a5b640afcae1dfa606f409e23ec5f499184
parent 5b202c43
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1648,8 +1648,7 @@ int main(int argc, char **argv)
                    wants_reboot = false;
                    wants_reboot = false;
                    wants_reboot_bootloader = true;
                    wants_reboot_bootloader = true;
                    skip(1);
                    skip(1);
                }
                } else if (!strcmp(*argv, "emergency")) {
                if (!strcmp(*argv, "emergency")) {
                    wants_reboot = false;
                    wants_reboot = false;
                    wants_reboot_emergency = true;
                    wants_reboot_emergency = true;
                    skip(1);
                    skip(1);