mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
ladspa-sink: fix incorrect error conditions
fix codes to prevent null pointer dereference of cdata variable. Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
This commit is contained in:
parent
ae843808bc
commit
66e8ec3453
1 changed files with 1 additions and 1 deletions
|
|
@ -718,7 +718,7 @@ static int parse_control_parameters(struct userdata *u, const char *cdata, doubl
|
|||
|
||||
pa_log_debug("Trying to read %lu control values", u->n_control);
|
||||
|
||||
if (!cdata && u->n_control > 0)
|
||||
if (!cdata || u->n_control == 0)
|
||||
return -1;
|
||||
|
||||
pa_log_debug("cdata: '%s'", cdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue