mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
Minor cleanup
TI compiler detects "multipart" as unused PUBLISHED_FROM=ababf8965a742418cff610df319e4d8c42e02439
This commit is contained in:
1 parent
d03b96b699
commit
0991ad7cc8
2 files changed
+3412
-4
No files matched your search
+1
-4
@@ -5256,7 +5256,6 @@ static void mg_http_multipart_begin(struct mg_connection *nc,
|
|||||||
struct mg_str *ct;
|
struct mg_str *ct;
|
||||||
struct mbuf *io = &nc->recv_mbuf;
|
struct mbuf *io = &nc->recv_mbuf;
|
||||||
|
|
||||||
const char multipart[] = "multipart";
|
|
||||||
char boundary[100];
|
char boundary[100];
|
||||||
int boundary_len;
|
int boundary_len;
|
||||||
|
|
||||||
@@ -5272,9 +5271,7 @@ static void mg_http_multipart_begin(struct mg_connection *nc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Content-type should start with "multipart" */
|
/* Content-type should start with "multipart" */
|
||||||
if (strncmp(ct->p, "multipart", ct->len < sizeof(multipart) - 1
|
if (ct->len < 9 || strncmp(ct->p, "multipart", 9) != 0) {
|
||||||
? ct->len
|
|
||||||
: sizeof(multipart) - 1) != 0) {
|
|
||||||
goto exit_mp;
|
goto exit_mp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3411
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user