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:17:30 +0000 (19:17 -0400)
commit225687bb334e23bdde1061106e4a0d78e7c71d03
treecb12dd495d5a1a571d0467ff576453e6b0a97759
parent808a4d46defe8b65590a3e6cab9c7df974696ec6
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.025241 seconds and 4 git commands to generate.