Fread return value unused

Assert that fread was able to read
specified amount of chunks
This commit is contained in:
Mikhail Lappo 2017-03-22 21:31:01 +01:00 committed by goldsimon
parent 8360054884
commit 08cb949aea

View File

@ -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