Fix: iterator.c: initialize `status` (may be used uninitialized)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 1 Oct 2019 18:17:44 +0000 (14:17 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 4 Oct 2019 16:52:40 +0000 (12:52 -0400)
commitc70a96a6f1568638751dce1ce97fb0581af1eb5c
tree80cf61d194dd882d49912267be361ac664bf5c0e
parent02c4ef49fb05d6e69053b54add5fe51ffd6f9aee
Fix: iterator.c: initialize `status` (may be used uninitialized)

From this GCC warning:

    iterator.c: In function ‘find_message_ge_ns_from_origin’:
    iterator.c:1611:9: error: ‘status’ may be used uninitialized in this
                              function [-Werror=maybe-uninitialized]
     1611 |  return status;
          |

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: If6f5f8a63d5a530284a08b9c6dd7f67ecfc9a818
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2120
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/lib/graph/iterator.c
This page took 0.025682 seconds and 4 git commands to generate.