Fix: live_viewer_connection_create(): `lttng_live_msg_iter` can be `NULL`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 29 Jul 2019 14:06:58 +0000 (10:06 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 31 Jul 2019 21:18:07 +0000 (17:18 -0400)
commit550004b427608c43666ed59b552c37ea900ad6f8
treeada1345fad25befae99a3fcd1b40327b69a72fa8
parent242ddcb7da2a47b75a687ed79d3723cf010f0f57
Fix: live_viewer_connection_create(): `lttng_live_msg_iter` can be `NULL`

Because `lttng_live_msg_iter` can be `NULL` in
live_viewer_connection_create() when it's used from a query operation,
pass the log level to use directly and only read `self_comp` if
`lttng_live_msg_iter` exists.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ied5ec621bcd066df0bb312a6f81899616f9d1a9f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1797
src/plugins/ctf/lttng-live/lttng-live.c
src/plugins/ctf/lttng-live/viewer-connection.c
src/plugins/ctf/lttng-live/viewer-connection.h
This page took 0.024756 seconds and 4 git commands to generate.