mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
Assume that the ports hashmap of cards is always non-NULL.
The hashmap is created in pa_card_new_data_init().
This commit is contained in:
parent
d184b54d7c
commit
8239fca09f
3 changed files with 18 additions and 24 deletions
|
|
@ -120,7 +120,9 @@ static void append_port_list(pa_strbuf *s, pa_hashmap *ports)
|
|||
pa_device_port *p;
|
||||
void *state;
|
||||
|
||||
if (!ports)
|
||||
pa_assert(ports);
|
||||
|
||||
if (pa_hashmap_isempty(ports))
|
||||
return;
|
||||
|
||||
pa_strbuf_puts(s, "\tports:\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue