recovery: fix non-MTD mounting (uninitialized variables)

Mounting failed due to invalid (garbage) fs_options
This commit is contained in:
Pawit Pornkitprasan 2011-11-19 13:31:21 +07:00
parent 21ad8d04dd
commit ff316eb739

View File

@ -134,6 +134,9 @@ void load_volume_table() {
device_volumes[num_volumes].device2 =
device2 ? strdup(device2) : NULL;
device_volumes[num_volumes].fs_type2 = NULL;
device_volumes[num_volumes].fs_options = NULL;
device_volumes[num_volumes].fs_options2 = NULL;
device_volumes[num_volumes].length = 0;
if (parse_options(options, device_volumes + num_volumes) != 0) {
LOGE("skipping malformed recovery.fstab line: %s\n", original);