build: fix GCC12 compilation

pull/21497/head
Alexander Alekhin 3 years ago
parent 25f25275cd
commit 302d14adef
  1. 2
      modules/core/src/persistence_base64.cpp

@ -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));

Loading…
Cancel
Save