summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootloader_message_twrp/bootloader_message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootloader_message_twrp/bootloader_message.cpp b/bootloader_message_twrp/bootloader_message.cpp
index a7a58f67a..a06ad9a89 100644
--- a/bootloader_message_twrp/bootloader_message.cpp
+++ b/bootloader_message_twrp/bootloader_message.cpp
@@ -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;