diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-26 16:05:29 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2018-07-27 00:55:02 +0200 |
commit | 6922b87e1b5190fce4db6ecc5b416672a8a4d6ba (patch) | |
tree | e37a3b01502c741abf2c16682b42a89f9e56cd76 | |
parent | 9095d213f536aec0f3c37f6666177f3b907afde7 (diff) |
ubi-utils: ubimkvol: Initialize req to zero to make sure no flags are set by default
The program expects req.flags to be zero-initialized, but it's not
the case. Let's explicitly initialize req to zero at declaration time.
Fixes: 7b4a65a27d26 ("ubi-utils: ubimkvol: add support for skipping CRC check of a static volume when opening")
Reviewed-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | ubi-utils/ubimkvol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/ubimkvol.c b/ubi-utils/ubimkvol.c index 1950061..b709b43 100644 --- a/ubi-utils/ubimkvol.c +++ b/ubi-utils/ubimkvol.c @@ -221,7 +221,7 @@ int main(int argc, char * const argv[]) libubi_t libubi; struct ubi_dev_info dev_info; struct ubi_vol_info vol_info; - struct ubi_mkvol_request req; + struct ubi_mkvol_request req = { }; err = parse_opt(argc, argv); if (err) |