From 08cb949aea0ceb4c61868f64edfc80b654653367 Mon Sep 17 00:00:00 2001 From: Mikhail Lappo Date: Wed, 22 Mar 2017 21:31:01 +0100 Subject: [PATCH] Fread return value unused Assert that fread was able to read specified amount of chunks --- src/apps/httpd/makefsdata/makefsdata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/httpd/makefsdata/makefsdata.c b/src/apps/httpd/makefsdata/makefsdata.c index 14d3f411..d9bfe4ad 100644 --- a/src/apps/httpd/makefsdata/makefsdata.c +++ b/src/apps/httpd/makefsdata/makefsdata.c @@ -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