mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
card-restore: it's not useful to check an array, let's check the length
This commit is contained in:
parent
ee0b5f7186
commit
01f81d6973
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ static pa_hook_result_t card_new_hook_callback(pa_core *c, pa_card_new_data *new
|
|||
|
||||
pa_assert(new_data);
|
||||
|
||||
if ((e = read_entry(u, new_data->name)) && e->profile) {
|
||||
if ((e = read_entry(u, new_data->name)) && e->profile[0]) {
|
||||
|
||||
if (!new_data->active_profile) {
|
||||
pa_card_new_data_set_profile(new_data, e->profile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue