Fix #1483 - add valgrind target, do not use stdlib strcasecmp()

This commit is contained in:
Sergey Lyubka committed 2022-03-18 08:52:54 +00:00
1 parent 870431dc1a
commit 8c447a95dd
4 files changed
+15 -16

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ static char *mg_ssi(const char *path, const char *root, int depth) {
struct mg_iobuf b = {NULL, 0, 0};
FILE *fp = fopen(path, "rb");
if (fp != NULL) {
char buf[BUFSIZ], arg[sizeof(buf)];
char buf[BUFSIZ] = "", arg[sizeof(buf)] = "";
int ch, intag = 0;
size_t len = 0, align = MG_IO_SIZE;
while ((ch = fgetc(fp)) != EOF) {