Detekce nullptr pri testovani retezce

This commit is contained in:
Pavel Brychta 2022-12-14 08:35:51 +01:00
parent 7ba28c9ba2
commit a3da39e6aa

View File

@ -7,6 +7,8 @@ bool isBase64(const char *p)
{ {
char c; char c;
if (!p)
return false;
if (strlen(p) % 4 != 0) if (strlen(p) % 4 != 0)
return false; return false;
do { do {