fix compiler warnings: -Wmaybe-uninitialized

This commit is contained in:
[anp/hsw]
2024-08-02 21:18:51 +07:00
parent ddc3fe7481
commit b65d0f2d73
4 changed files with 9 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ bool HttpReplyLooksLikeDPIRedirect(const uint8_t *data, size_t len, const char *
}
size_t HttpPos(enum httpreqpos tpos_type, size_t hpos_pos, const uint8_t *http, size_t sz)
{
const uint8_t *method, *host;
const uint8_t *method, *host = NULL;
int i;
switch(tpos_type)