[pa-ucm] SIGABORT in ucm_get_modifiers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2013-06-17 at 06:12 -0700, sajeesh sidharthan wrote:
> Hello.
> 
> Ths change fixed SIGABORT.
> 
> -----------------
> 
> diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c
> index 3b55e82..1156ffa 100644
> --- a/src/modules/alsa/alsa-ucm.c
> +++ b/src/modules/alsa/alsa-ucm.c
> @@ -361,7 +361,7 @@ static int ucm_get_modifier_property(pa_alsa_ucm_modifier *modifier, snd_use_cas
>  
>  /* Create a list of devices for this verb */
>  static int ucm_get_devices(pa_alsa_ucm_verb *verb, snd_use_case_mgr_t *uc_mgr) {
> -    const char **dev_list;
> +    const char **dev_list = NULL;
>      int num_dev, i;
>  
>      num_dev = snd_use_case_get_list(uc_mgr, "_devices", &dev_list);
> @@ -384,7 +384,7 @@ static int ucm_get_devices(pa_alsa_ucm_verb *verb, snd_use_case_mgr_t *uc_mgr) {
>  };
>  
>  static int ucm_get_modifiers(pa_alsa_ucm_verb *verb, snd_use_case_mgr_t *uc_mgr) {
> -    const char **mod_list;
> +    const char **mod_list = NULL;
>      int num_mod, i;
>  
>      num_mod = snd_use_case_get_list(uc_mgr, "_modifiers", &mod_list);

This is a known ALSA bug that has been fixed in alsa-lib 1.0.26, but
thanks for your efforts anyway.

-- 
Tanu



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux