Address some gcc-13 analyzer warnings. #33

This commit is contained in:
2024-02-22 20:13:51 -05:00
parent 4bfd9de100
commit 2701b7d04e
2 changed files with 17 additions and 0 deletions

View File

@ -509,6 +509,11 @@ static void _httpd_endpoint_hitches(tf_http_request_t* request)
static const char* _after(const char* text, const char* prefix)
{
if (!text || !prefix)
{
return NULL;
}
size_t prefix_length = strlen(prefix);
if (strncmp(text, prefix, prefix_length) == 0)
{