mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Fread return value unused
Assert that fread was able to read specified amount of chunks
This commit is contained in:
parent
8360054884
commit
08cb949aea
@ -502,6 +502,7 @@ u8_t* get_file_data(const char* filename, int* file_size, int can_be_compressed,
|
||||
buf = (u8_t*)malloc(fsize);
|
||||
LWIP_ASSERT("buf != NULL", buf != NULL);
|
||||
r = fread(buf, 1, fsize, inFile);
|
||||
LWIP_ASSERT("r == fsize", r == fsize);
|
||||
*file_size = fsize;
|
||||
*is_compressed = 0;
|
||||
#if MAKEFS_SUPPORT_DEFLATE
|
||||
|
Loading…
Reference in New Issue
Block a user