[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:
ejurgensen
2018-12-29 16:39:52 +01:00
parent 271978f41a
commit 103dda29f3
2 changed files with 2 additions and 4 deletions

View File

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