sink-input, source-output: add a couple of assertions

System Internals / PulseAudio - Tanu Kaskinen [iki.fi] - 30 October 2017 14:46 EDT

Coverity complained about data->sink being possibly NULL when it's dereferenced later. It was difficult for me to figure out whether that was a false positive or not. Hopefully the comments make it a bit easier to reason about the code in the future.

CID: 1323591

917730a5 sink-input, source-output: add a couple of assertions
src/pulsecore/sink-input.c | 5 +++++
src/pulsecore/source-output.c | 5 +++++
2 files changed, 10 insertions(+)

Upstream: cgit.freedesktop.org


  • Share