mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
build: fix GCC12 compilation
This commit is contained in:
parent
25f25275cd
commit
302d14adef
@ -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…
Reference in New Issue
Block a user