connection.c: added assert to mute static analyzer

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2021-08-16 11:09:48 +03:00
1 parent 1dafa07eb3
commit d2e271a4eb
1 file changed
+1
+1
View File
@@ -1669,6 +1669,7 @@ buffer_append (char *buf,
const char *append,
size_t append_size)
{
mhd_assert (NULL != buf); /* Mute static analyzer */
if (buf_size < *ppos + append_size)
return false;
memcpy (buf + *ppos, append, append_size);