diff options
author | Chih-Hung Hsieh <chh@google.com> | 2014-09-10 17:21:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-10 17:21:11 +0000 |
commit | aed0769eefd99588c4d6bfb0c024244ce591fbf0 (patch) | |
tree | cd83e74f9e2cf0dc134f130a22f1e1a856dbdb0a /fs_mgr | |
parent | dc0e2389c59077f9ceba9924de0e6edede89a7b0 (diff) | |
parent | 049296382d3604868378c957e999ae63cf3a1f5f (diff) | |
download | core-aed0769eefd99588c4d6bfb0c024244ce591fbf0.tar.gz core-aed0769eefd99588c4d6bfb0c024244ce591fbf0.tar.bz2 core-aed0769eefd99588c4d6bfb0c024244ce591fbf0.zip |
am 04929638: am da3510b2: Merge "Avoid partial initialization warning."
* commit '049296382d3604868378c957e999ae63cf3a1f5f':
Avoid partial initialization warning.
Diffstat (limited to 'fs_mgr')
-rw-r--r-- | fs_mgr/fs_mgr_verity.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs_mgr/fs_mgr_verity.c b/fs_mgr/fs_mgr_verity.c index b79a4a842..da3c0f91a 100644 --- a/fs_mgr/fs_mgr_verity.c +++ b/fs_mgr/fs_mgr_verity.c @@ -121,7 +121,9 @@ static int get_target_device_size(char *blk_device, uint64_t *device_size) { int data_device; struct ext4_super_block sb; - struct fs_info info = {0}; + struct fs_info info; + + info.len = 0; /* Only len is set to 0 to ask the device for real size. */ data_device = open(blk_device, O_RDONLY); if (data_device < 0) { |