mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[pipe/raop] Check for NULL to avoid scan-build issues (in case of oom)
This commit is contained in:
parent
a37fc0916f
commit
788cb6f133
@ -417,7 +417,7 @@ parse_item(struct input_metadata *m, const char *item)
|
|||||||
if (data != &progress && data != &volume)
|
if (data != &progress && data != &volume)
|
||||||
free(*data);
|
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);
|
DPRINTF(E_DBG, L_PLAYER, "Read Shairport metadata (type=%8x, code=%8x): '%s'\n", type, code, *data);
|
||||||
|
|
||||||
|
@ -4730,7 +4730,7 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
|
|||||||
p = keyval_get(txt, "et");
|
p = keyval_get(txt, "et");
|
||||||
if (p)
|
if (p)
|
||||||
{
|
{
|
||||||
et = strdup(p);
|
CHECK_NULL(L_RAOP, et = strdup(p));
|
||||||
token = strtok_r(et, ",", &ptr);
|
token = strtok_r(et, ",", &ptr);
|
||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user