Fix #1298 - shadowing struct mg_str constructor

This commit is contained in:
Sergey Lyubka committed 2021-07-15 02:18:32 +01:00
1 parent 80fcba91c8
commit 77fae5c562
5 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
#include "str.h"
#include <stdlib.h>
struct mg_str mg_str(const char *s) {
struct mg_str mg_str_s(const char *s) {
struct mg_str str = {s, s == NULL ? 0 : strlen(s)};
return str;
}