Fix compile error with IGNORE_MISC_WIPE_DATA in some trees

Change-Id: I4a57e4e90158d50a9e9c9aef8ed1da9ee9179554
This commit is contained in:
Ethan Yonker
2017-11-30 10:24:33 -06:00
parent 7c997913e2
commit 606cc915f1
@@ -332,7 +332,7 @@ get_args(int *argc, char ***argv) {
// walking through the factory reset screen - without actually doing a factory reset
#ifdef IGNORE_MISC_WIPE_DATA
if (!strcmp(arg, "--wipe_data")) {
(*argv)[*argc] = "";
(*argv)[*argc] = NULL;
*argc = *argc -1;
printf("Bootloader arg \"%s\" ignored because TWRP was compiled with TW_IGNORE_MISC_WIPE_DATA\n", arg);
continue;