mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
dbus: Add an assertion to get rid of a warning from Coverity.
Coverity thinks that sample can be NULL when it's dereferenced after this line. Adding an assertion doesn't hurt here (in my opinion), and that should get rid of the warning.
This commit is contained in:
parent
5a26404f12
commit
9d640e4491
1 changed files with 1 additions and 1 deletions
|
|
@ -1401,7 +1401,7 @@ static void handle_upload_sample(DBusConnection *conn, DBusMessage *msg, void *u
|
|||
goto finish;
|
||||
}
|
||||
|
||||
sample = pa_idxset_get_by_index(c->core->scache, idx);
|
||||
pa_assert_se(sample = pa_idxset_get_by_index(c->core->scache, idx));
|
||||
|
||||
if (n_volume_entries > 0) {
|
||||
sample->volume.channels = n_channels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue