antmicro / zynq-mkbootimage

An open source replacement of the Xilinx bootgen application.
BSD 2-Clause "Simplified" License
93 stars 47 forks source link

Fix incorrect successful exit code on create_boot_image failure #8

Closed anssih closed 6 years ago

anssih commented 6 years ago

create_boot_image() may fail with ofile_size == 0. In such a case, the current main() returns exit code 0.

Fix that by simply always returning EXIT_FAILURE on create_boot_image() failure.

tgorochowik commented 6 years ago

That is correct, thanks!