aboutsummaryrefslogtreecommitdiffstats
path: root/roots.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 /roots.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 'roots.c')
-rw-r--r--roots.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/roots.c b/roots.c
index 2a86346..dbb04bb 100644
--- a/roots.c
+++ b/roots.c
@@ -138,6 +138,11 @@ void load_volume_table() {
device_volumes[num_volumes].fs_options = NULL;
device_volumes[num_volumes].fs_options2 = NULL;
device_volumes[num_volumes].length = 0;
+
+ device_volumes[num_volumes].fs_type2 = NULL;
+ device_volumes[num_volumes].fs_options = NULL;
+ device_volumes[num_volumes].fs_options2 = NULL;
+
if (parse_options(options, device_volumes + num_volumes) != 0) {
LOGE("skipping malformed recovery.fstab line: %s\n", original);
} else {
@@ -213,7 +218,7 @@ int ensure_path_mounted_at_mount_point(const char* path, const char* mount_point
if (v == NULL) {
// no /sdcard? let's assume /data/media
if (strstr(path, "/sdcard") == path && is_data_media()) {
- LOGW("using /data/media, no /sdcard found.\n");
+ LOGI("using /data/media, no /sdcard found.\n");
int ret;
if (0 != (ret = ensure_path_mounted("/data")))
return ret;