mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
Fix #1298 - shadowing struct mg_str constructor
This commit is contained in:
1 parent
80fcba91c8
commit
77fae5c562
5 files changed
+9
-4
No files matched your search
+1
-1
@@ -3282,7 +3282,7 @@ void mg_http_serve_ssi(struct mg_connection *c, const char *root,
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user