build: fix GCC12 compilation

This commit is contained in:
Alexander Alekhin 2022-01-22 11:48:44 +00:00
parent 25f25275cd
commit 302d14adef

View File

@ -164,7 +164,7 @@ size_t base64_decode(char const * src, char * dst, size_t off, size_t cnt)
bool base64_valid(uint8_t const * src, size_t off, size_t cnt)
{
/* check parameters */
if (src == 0 || src + off == 0)
if (src == 0)
return false;
if (cnt == 0U)
cnt = std::strlen(reinterpret_cast<char const *>(src));