Fix #1297 - %p warning

This commit is contained in:
Sergey Lyubka committed 2021-07-14 04:00:27 +01:00
1 parent 39d64be581
commit 80fcba91c8
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -518,8 +518,8 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm,
FILE *fp = mg_fopen(path, "rb");
if (fp == NULL || mg_stat(path, &st) != 0 ||
mg_http_etag(etag, sizeof(etag), &st) != etag) {
LOG(LL_DEBUG,
("404 [%.*s] [%s] %p", (int) hm->uri.len, hm->uri.ptr, path, fp));
LOG(LL_DEBUG, ("404 [%.*s] [%s] %p", (int) hm->uri.len, hm->uri.ptr, path,
(void *) fp));
mg_http_reply(c, 404, "", "%s", "Not found\n");
if (fp != NULL) fclose(fp);
} else if (inm != NULL && mg_vcasecmp(inm, etag) == 0) {