[pipe/raop] Check for NULL to avoid scan-build issues (in case of oom)

This commit is contained in:
chme 2018-12-27 08:56:18 +01:00 committed by ejurgensen
parent a37fc0916f
commit 788cb6f133
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ parse_item(struct input_metadata *m, const char *item)
if (data != &progress && data != &volume)
free(*data);
*data = b64_decode(s);
CHECK_NULL(L_PLAYER, *data = b64_decode(s));
DPRINTF(E_DBG, L_PLAYER, "Read Shairport metadata (type=%8x, code=%8x): '%s'\n", type, code, *data);

View File

@ -4730,7 +4730,7 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
p = keyval_get(txt, "et");
if (p)
{
et = strdup(p);
CHECK_NULL(L_RAOP, et = strdup(p));
token = strtok_r(et, ",", &ptr);
while (token)
{