mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-06 02:27:15 +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);
|
buf = (u8_t*)malloc(fsize);
|
||||||
LWIP_ASSERT("buf != NULL", buf != NULL);
|
LWIP_ASSERT("buf != NULL", buf != NULL);
|
||||||
r = fread(buf, 1, fsize, inFile);
|
r = fread(buf, 1, fsize, inFile);
|
||||||
|
LWIP_ASSERT("r == fsize", r == fsize);
|
||||||
*file_size = fsize;
|
*file_size = fsize;
|
||||||
*is_compressed = 0;
|
*is_compressed = 0;
|
||||||
#if MAKEFS_SUPPORT_DEFLATE
|
#if MAKEFS_SUPPORT_DEFLATE
|
||||||
|
Loading…
Reference in New Issue
Block a user