From ff316eb739c6490d2913796091e2ee1a007f3187 Mon Sep 17 00:00:00 2001
From: Pawit Pornkitprasan
Date: Sat, 19 Nov 2011 13:31:21 +0700
Subject: [PATCH] recovery: fix non-MTD mounting (uninitialized variables)
Mounting failed due to invalid (garbage) fs_options
---
roots.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/roots.c b/roots.c
index e28eedc..2a86346 100644
--- a/roots.c
+++ b/roots.c
@@ -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);