add terminator to recovery's getopt_long options array
http://b/2170691 - recovery argument parsing is broken
This commit is contained in:
@@ -43,6 +43,7 @@ static const struct option OPTIONS[] = {
|
|||||||
{ "update_package", required_argument, NULL, 'u' },
|
{ "update_package", required_argument, NULL, 'u' },
|
||||||
{ "wipe_data", no_argument, NULL, 'w' },
|
{ "wipe_data", no_argument, NULL, 'w' },
|
||||||
{ "wipe_cache", no_argument, NULL, 'c' },
|
{ "wipe_cache", no_argument, NULL, 'c' },
|
||||||
|
{ NULL, 0, NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *COMMAND_FILE = "CACHE:recovery/command";
|
static const char *COMMAND_FILE = "CACHE:recovery/command";
|
||||||
|
|||||||
Reference in New Issue
Block a user