Fix: muxer_upstream_msg_iters_can_all_seek_beginning(): init. `status`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Sep 2019 08:10:16 +0000 (04:10 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 23 Sep 2019 15:18:01 +0000 (11:18 -0400)
commitc4b56970e243138c6a6c790effbef58e1ae22513
treef89aa4a8251b45e68a279f5a3a8ce3cefd9a82bb
parent74f4949e3f9bfc452f48cd9d9fec1dccbb1f0404
Fix: muxer_upstream_msg_iters_can_all_seek_beginning(): init. `status`

Detected by GCC:

    muxer.c: In function ‘muxer_msg_iter_can_seek_beginning’:
    muxer.c:1541:9: error: ‘status’ may be used uninitialized in this
    function [-Werror=maybe-uninitialized]
      return status;
             ^~~~~~
    muxer.c:1529:5: error: ‘status’ may be used uninitialized in this
    function [-Werror=maybe-uninitialized]
      if (status != BT_COMPONENT_CLASS_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_METHOD_STATUS_OK) {
         ^

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I55ad73aeb9595796bdcddff5ba4d2895d5f2314e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2073
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/utils/muxer/muxer.c
This page took 0.023807 seconds and 4 git commands to generate.