The previous commit introduced a new bug: giving too many values in the "control" argument wasn't detected any more. Fixed.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2093 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Tanu Kaskinen 2008-01-03 21:53:46 +00:00
parent 39ba68bcf4
commit 4e771768e3

View file

@ -470,7 +470,7 @@ int pa__init(pa_module*m) {
p++; p++;
} }
if (p > n_control) { if (p > n_control || k) {
pa_log("Too many control values passed, %lu expected.", n_control); pa_log("Too many control values passed, %lu expected.", n_control);
goto fail; goto fail;
} }