summaryrefslogtreecommitdiffstats
path: root/bootloader_message_twrp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-11-30 17:24:33 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-11-30 17:24:33 +0100
commit606cc915f16061a12a41b219861b31acce03fa91 (patch)
tree318a5ca98ec054fe13eda434f2cb134ae0d1c3f6 /bootloader_message_twrp
parentFix more compile errors in bootloader_message_twrp (diff)
downloadandroid_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.tar
android_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.tar.gz
android_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.tar.bz2
android_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.tar.lz
android_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.tar.xz
android_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.tar.zst
android_bootable_recovery-606cc915f16061a12a41b219861b31acce03fa91.zip
Diffstat (limited to 'bootloader_message_twrp')
-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;