From e32b8952a630f6a125f2a151f3084b59b9074bb8 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 5 Sep 2014 16:41:08 -0700 Subject: Avoid partial initialization warning. Clang compiler is picky about partial initialization and here we only need to initialize the 'len' field. BUG: 17410010 Change-Id: I718582cef96d5f4076b5ff1c7b8162327e7809b6 --- fs_mgr/fs_mgr_verity.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fs_mgr') diff --git a/fs_mgr/fs_mgr_verity.c b/fs_mgr/fs_mgr_verity.c index c9a2a9bc7..1d2e43ff6 100644 --- a/fs_mgr/fs_mgr_verity.c +++ b/fs_mgr/fs_mgr_verity.c @@ -120,7 +120,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) { -- cgit v1.2.3