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

am: 517f6d476e

Change-Id: I739fb29f259503f0fe39d7b0122cbbb134cfcee1
This commit is contained in:
Pavlin Radoslavov 2017-01-26 07:29:30 +00:00 committed by android-build-merger
commit 1c1ee87e35

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);