[vlc-devel] [vlc-commits] Qt: capture panel: fix segfault on null value.

Francois Cartegnie fcvlcdev at free.fr
Sat Jan 26 20:46:44 CET 2013


Le 25/01/2013 14:15, Rémi Denis-Courmont a écrit :
>> +            if( p_config->value.psz && !strcmp(p_config->value.psz,
> This does not work if the current value is "".
> 
> That's one of many reasons not to access module_config_t directly, but the 
> helper functions.

You're pointing to use Config_getChoices_psz, but the problem isn't with
choices, but module value.
For value access, ConfigGet_psz will return NULL and won't solve the
problem.

Francois





More information about the vlc-devel mailing list