diff options
author | Koushik Dutta <koushd@gmail.com> | 2011-11-23 14:06:12 -0800 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2011-11-23 14:06:26 -0800 |
commit | ddc1241a36c48a857971f5d926a33680e52a59d6 (patch) | |
tree | 3ce69126672138d292f83563f55206a325ba10bb /roots.c | |
parent | edae7a5b0f20249528b72ac87d9b6b5d769b927f (diff) | |
download | bootable_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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |