Fix: ret may be used uninitialized in sample_channel_positions()
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 30 Apr 2018 18:27:35 +0000 (14:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 30 Apr 2018 22:13:57 +0000 (18:13 -0400)
commit23bc9bb5ee7a2f637d68341ba425700e04ea101f
treedcd9b03d3ebda68c231abc20d2d2ab3fd9a7f139
parent25c6c5dcd5c2d503a8521dda5853d6e3074fdc33
Fix: ret may be used uninitialized in sample_channel_positions()

sample_channel_positions() returns garbage if
cds_lfht_is_node_deleted(&stream->node.node) on first and "possibly"
only iteration of the consumer_data.stream_per_chan_id_ht hash table.

Found by scan-build.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer-timer.c
This page took 0.025188 seconds and 4 git commands to generate.