forked from cory/tildefriends
Address some gcc-13 analyzer warnings. #33
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user