mg_next_comma_entry -> mg_comma

This commit is contained in:
Sergey Lyubka committed 2021-08-23 16:54:58 +01:00
1 parent 9b37ac384f
commit 1c456fc2df
9 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ bool mg_log_prefix(int level, const char *file, int line, const char *fname) {
if (p == NULL) p = strrchr(file, '\\');
p = p == NULL ? file : p + 1;
while (mg_next_comma_entry(&s, &k, &v)) {
while (mg_comma(&s, &k, &v)) {
if (v.len == 0) max = atoi(k.ptr);
if (v.len > 0 && strncmp(p, k.ptr, k.len) == 0) max = atoi(v.ptr);
}