mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
mkzenboot: Fix double close of bootfd on error
cppcheck reported: [rockbox/tools/mkzenboot.c:1176]: (error) Used file that is not opened. Change-Id: Ibbf7ab2910c7f43b547fef25c62e0b4d19ff9551
This commit is contained in:
parent
1eb1bc24f2
commit
61e322c840
1 changed files with 0 additions and 1 deletions
|
@ -1173,7 +1173,6 @@ int mkboot(const char* infile, const char* bootfile, const char* outfile, struct
|
||||||
if(fwrite(&out_buffer[i+8+le2int(&out_buffer[i+4])], ciff_size-i-8-le2int(&out_buffer[i+4]), 1, outfd) != 1)
|
if(fwrite(&out_buffer[i+8+le2int(&out_buffer[i+4])], ciff_size-i-8-le2int(&out_buffer[i+4]), 1, outfd) != 1)
|
||||||
{
|
{
|
||||||
log_message("[ERR] Short write\n");
|
log_message("[ERR] Short write\n");
|
||||||
fclose(bootfd);
|
|
||||||
fclose(outfd);
|
fclose(outfd);
|
||||||
free(out_buffer);
|
free(out_buffer);
|
||||||
return -28;
|
return -28;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue