mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-21 18:26:06 -05:00
[misc] Move CHECK_NULL inside b64_decode (around the malloc)
To stay in line with general use of the macro
This commit is contained in:
@@ -738,9 +738,7 @@ b64_decode(const char *b64)
|
||||
|
||||
len = strlen(b64);
|
||||
|
||||
str = (char *)malloc(len);
|
||||
if (!str)
|
||||
return NULL;
|
||||
CHECK_NULL(L_MISC, str = malloc(len));
|
||||
|
||||
memset(str, 0, len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user