mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
don't segfault when module-tunnel is used without a sink_name/source_name parameter. Closes #197
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/prepare-0.9.10@2186 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
13b99517ab
commit
fad6b41678
1 changed files with 2 additions and 2 deletions
|
|
@ -723,7 +723,7 @@ static void sink_info_cb(pa_pdispatch *pd, uint32_t command, PA_GCC_UNUSED uint3
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (strcmp(name, u->sink_name))
|
||||
if (!u->sink_name || strcmp(name, u->sink_name))
|
||||
return;
|
||||
|
||||
pa_xfree(u->device_description);
|
||||
|
|
@ -836,7 +836,7 @@ static void source_info_cb(pa_pdispatch *pd, uint32_t command, PA_GCC_UNUSED uin
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (strcmp(name, u->source_name))
|
||||
if (!u->source_name || strcmp(name, u->source_name))
|
||||
return;
|
||||
|
||||
pa_xfree(u->device_description);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue