Assign *_STATUS_OK to ret
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 4 Jul 2019 21:27:29 +0000 (17:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:34 +0000 (11:53 -0400)
commit233c7608fd918feb6a9a80af60555a02889816e7
tree1df474d33ab0ceea2feb72a7e98efc7772c4647e
parentb4d7c117eb74d4ef6706a22aa0458ae471f2614d
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.025958 seconds and 4 git commands to generate.