diff options
author | Trent Piepho <tpiepho@gmail.com> | 2021-05-25 23:58:56 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-27 08:53:43 +0200 |
commit | bd9313ebbf9765cd49842a94a9d81de13fa56981 (patch) | |
tree | a49a070598196c8ed5c6f28c470e377a5ce32187 /scripts | |
parent | 17f08774cc14ceaedcf9f2dc37aa73e0ebbd2585 (diff) | |
download | barebox-bd9313ebbf9765cd49842a94a9d81de13fa56981.tar.gz barebox-bd9313ebbf9765cd49842a94a9d81de13fa56981.tar.xz |
imx-image: Fix uninitialized add_barebox_header
It's set to 1 if the -b option is used, but is neither initialized nor
set to 0 if not. Since the barebox image building recipies only uses -b
with this tool, it wasn't noticed.
Signed-off-by: Trent Piepho <tpiepho@gmail.com>
Link: https://lore.barebox.org/20210526065856.368345-1-trent.piepho@igorinstitute.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/imx/imx-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 3e277e82fa..b97f561897 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -770,7 +770,7 @@ int main(int argc, char *argv[]) int outfd; int dcd_only = 0; int now = 0; - int add_barebox_header; + int add_barebox_header = 0; uint32_t barebox_image_size = 0; struct config_data data = { .image_ivt_offset = 0xffffffff, |