From 988500b615de24455e1fee69e72055bb1dca9c86 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 6 Oct 2009 14:41:38 -0700 Subject: [PATCH] add terminator to recovery's getopt_long options array http://b/2170691 - recovery argument parsing is broken --- recovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/recovery.c b/recovery.c index 3fabd5b..5b3f6e5 100644 --- a/recovery.c +++ b/recovery.c @@ -43,6 +43,7 @@ static const struct option OPTIONS[] = { { "update_package", required_argument, NULL, 'u' }, { "wipe_data", no_argument, NULL, 'w' }, { "wipe_cache", no_argument, NULL, 'c' }, + { NULL, 0, NULL, 0 }, }; static const char *COMMAND_FILE = "CACHE:recovery/command";