Fix #1351 - squash warning

This commit is contained in:
Sergey Lyubka committed 2021-09-17 11:07:20 +01:00
1 parent 40b3382023
commit c7bd63ef53
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -531,7 +531,7 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm,
struct mg_str *inm = NULL;
if (fd == NULL || fs->stat(path, &size, &mtime) == 0) {
LOG(LL_DEBUG, ("404 [%.*s] %p", (int) hm->uri.len, hm->uri.ptr, fd));
LOG(LL_DEBUG, ("404 [%s] %p", path, (void *) fd));
mg_http_reply(c, 404, "", "%s", "Not found\n");
fs->close(fd);
// NOTE: mg_http_etag() call should go first!