Detekce nullptr pri testovani retezce
This commit is contained in:
parent
7ba28c9ba2
commit
a3da39e6aa
@ -7,6 +7,8 @@ bool isBase64(const char *p)
|
||||
{
|
||||
char c;
|
||||
|
||||
if (!p)
|
||||
return false;
|
||||
if (strlen(p) % 4 != 0)
|
||||
return false;
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user