mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-29 16:25:54 +08:00
warning squashed in convert_uri_to_file_name()
This commit is contained in:
parent
67c44799c8
commit
f639409533
@ -2216,7 +2216,7 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf,
|
|||||||
// Perform virtual hosting rewrites
|
// Perform virtual hosting rewrites
|
||||||
if (rewrites != NULL && domain != NULL) {
|
if (rewrites != NULL && domain != NULL) {
|
||||||
const char *colon = strchr(domain, ':');
|
const char *colon = strchr(domain, ':');
|
||||||
int domain_len = colon == NULL ? strlen(domain) : colon - domain;
|
int domain_len = colon == NULL ? strlen(domain) : (int) (colon - domain);
|
||||||
|
|
||||||
while ((rewrites = next_option(rewrites, &a, &b)) != NULL) {
|
while ((rewrites = next_option(rewrites, &a, &b)) != NULL) {
|
||||||
if (a.len > 1 && a.ptr[0] == '@' && a.len == domain_len + 1 &&
|
if (a.len > 1 && a.ptr[0] == '@' && a.len == domain_len + 1 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user