FIRE-34344 - add safeguard for string to longlong conversion against 0 pointer
parent
526696566d
commit
6d1d0ebb22
|
|
@ -399,7 +399,13 @@ void callback_discovered_sinkinput(pa_context *context, const pa_sink_input_info
|
|||
if (0 == eol)
|
||||
{
|
||||
pa_proplist *proplist = sii->proplist;
|
||||
pid_t sinkpid = atoll(llpa_proplist_gets(proplist, PA_PROP_APPLICATION_PROCESS_ID));
|
||||
const char* str = llpa_proplist_gets(proplist, PA_PROP_APPLICATION_PROCESS_ID);
|
||||
if (!str)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
pid_t sinkpid = atoll(str);
|
||||
|
||||
if (isPluginPid( sinkpid )) // does the discovered sinkinput belong to this process?
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue