Even if instantiation of libudev enumerator is successful,
alsactl_get_card_id_list() handles the success as failure. As a result,
the function does not work at all.
This commit fixes the bug.
Fixes: bfe4b0589fc6 ("ctl/hwdep/rawmidi: fix uninitialized warning")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
g_return_if_fail(error == NULL || *error == NULL);
prepare_udev_enum(&enumerator, error);
- if (*error == NULL)
+ if (*error != NULL)
return;
entry_list = udev_enumerate_get_list_entry(enumerator);