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:
Tanu Kaskinen 2012-06-08 21:49:12 +03:00
parent d184b54d7c
commit 8239fca09f
3 changed files with 18 additions and 24 deletions

View file

@ -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");