Fix: consumerd: uninitialized written_bytes on no-data sleep
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Jun 2020 23:13:50 +0000 (19:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Jun 2020 23:16:52 +0000 (19:16 -0400)
commit9a63f11d79d1d5ad06b2def005d54c93e8c523aa
tree25987e2bdf16a8b23c0d7259a7fd8e202cd7285c
parent8ac94c7d9b2153182cf7afc3bfa2a0e81d00e8c9
Fix: consumerd: uninitialized written_bytes on no-data sleep

e66d26f51 introduces a jump to a label which causes `written_bytes`
(the return value) to not be initialized.

written_bytes may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I72c5c07298093f27fa72b72cb157ce4eedb81adb
src/common/consumer/consumer.c
This page took 0.025768 seconds and 4 git commands to generate.