aboutsummaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2011-11-23 14:06:12 -0800
committerKoushik Dutta <koushd@gmail.com>2011-11-23 14:06:26 -0800
commitddc1241a36c48a857971f5d926a33680e52a59d6 (patch)
tree3ce69126672138d292f83563f55206a325ba10bb /recovery.c
parentedae7a5b0f20249528b72ac87d9b6b5d769b927f (diff)
downloadbootable_recovery-ddc1241a36c48a857971f5d926a33680e52a59d6.zip
bootable_recovery-ddc1241a36c48a857971f5d926a33680e52a59d6.tar.gz
bootable_recovery-ddc1241a36c48a857971f5d926a33680e52a59d6.tar.bz2
fix missing prebuilts in recovery. mmc bootloader message support. fix segfault happening due to C structs not being zeroed out.
Diffstat (limited to 'recovery.c')
-rw-r--r--recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/recovery.c b/recovery.c
index 2b3543e..0e92a5b 100644
--- a/recovery.c
+++ b/recovery.c
@@ -161,7 +161,7 @@ static void
get_args(int *argc, char ***argv) {
struct bootloader_message boot;
memset(&boot, 0, sizeof(boot));
- if (device_flash_type() == MTD) {
+ if (device_flash_type() == MTD || device_flash_type() == MMC) {
get_bootloader_message(&boot); // this may fail, leaving a zeroed structure
}