sink-input, source-output: add a couple of assertions
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 29 Oct 2017 19:15:48 +0000 (21:15 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 30 Oct 2017 14:46:15 +0000 (16:46 +0200)
commit917730a55565e1a98a4fa0249470794f81bbe42a
tree2dd4aaed0f58bfa6a7d0bbd66ff7b9dd0230c268
parent459cea16ee8be1024c35e86ab9a3676ceebcb550
sink-input, source-output: add a couple of assertions

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
src/pulsecore/sink-input.c
src/pulsecore/source-output.c