Merge "Fix a crash when parsing fastboot command-line arguments"

This commit is contained in:
Treehugger Robot 2017-01-26 07:23:17 +00:00 committed by Gerrit Code Review
commit 517f6d476e

View file

@ -1648,8 +1648,7 @@ int main(int argc, char **argv)
wants_reboot = false;
wants_reboot_bootloader = true;
skip(1);
}
if (!strcmp(*argv, "emergency")) {
} else if (!strcmp(*argv, "emergency")) {
wants_reboot = false;
wants_reboot_emergency = true;
skip(1);