am da3510b2: Merge "Avoid partial initialization warning."
* commit 'da3510b27246de1ab3eda38a14a80839e2f39c64': Avoid partial initialization warning.
This commit is contained in:
commit
049296382d
1 changed files with 3 additions and 1 deletions
|
|
@ -120,7 +120,9 @@ static int get_target_device_size(char *blk_device, uint64_t *device_size)
|
||||||
{
|
{
|
||||||
int data_device;
|
int data_device;
|
||||||
struct ext4_super_block sb;
|
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);
|
data_device = open(blk_device, O_RDONLY);
|
||||||
if (data_device < 0) {
|
if (data_device < 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue