From 9b040624c0e5be08e7ee0dffc7712ba3278cdb79 Mon Sep 17 00:00:00 2001 From: Mike Kleshov Date: Thu, 28 Jan 2021 19:53:57 +0300 Subject: [PATCH] httpd: follow-up to previous commit see bug #59876 --- contrib/examples/httpd/genfiles_example/genfiles_example.c | 3 +++ src/apps/http/fs.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/examples/httpd/genfiles_example/genfiles_example.c b/contrib/examples/httpd/genfiles_example/genfiles_example.c index 95e5bdb7..b96df2a7 100644 --- a/contrib/examples/httpd/genfiles_example/genfiles_example.c +++ b/contrib/examples/httpd/genfiles_example/genfiles_example.c @@ -57,6 +57,9 @@ #if !LWIP_HTTPD_CUSTOM_FILES #error This needs LWIP_HTTPD_CUSTOM_FILES #endif +#if !LWIP_HTTPD_FILE_EXTENSION +#error This needs LWIP_HTTPD_FILE_EXTENSION +#endif #if !LWIP_HTTPD_DYNAMIC_HEADERS #error This needs LWIP_HTTPD_DYNAMIC_HEADERS #endif diff --git a/src/apps/http/fs.c b/src/apps/http/fs.c index 27094399..3c9f24d5 100644 --- a/src/apps/http/fs.c +++ b/src/apps/http/fs.c @@ -74,7 +74,6 @@ fs_open(struct fs_file *file, const char *name) file->data = (const char *)f->data; file->len = f->len; file->index = f->len; - file->pextension = NULL; file->flags = f->flags; #if HTTPD_PRECALCULATED_CHECKSUM file->chksum_count = f->chksum_count;