Assign *_STATUS_OK to ret
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 4 Jul 2019 21:27:29 +0000 (17:27 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 4 Jul 2019 21:52:44 +0000 (17:52 -0400)
commitb51acf23f9e01d156dba458fbaa0837e646b5969
tree6bb3552a64423063ecc11f9d4ed6e2e5b4cceeed
parent64925bbac7ebefa53745b3d8c7c6cd59172ce764
Assign *_STATUS_OK to ret

pretty.c:227 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

This *could* happen if next_status is BT_MESSAGE_ITERATOR_NEXT_STATUS_OK
and count is still 0.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I4a08d1bcc2f9b56e225ca17a210a4597169ed746
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1634
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/text/pretty/pretty.c
This page took 0.024722 seconds and 4 git commands to generate.