Coverity report:
CID
1400682 (#1 of 1): Dereference before null check
(REVERSE_INULL)check_after_deref: Null-checking descriptor suggests that
it may be null, but it has already been dereferenced on all paths
leading to the check.
Reported-by: (1400682) Dereference before null check
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
descriptor = _lttng_session_descriptor_live_create(name,
live_timer_interval_us);
+ if (!descriptor) {
+ goto error;
+ }
+
descriptor->base.output_type =
LTTNG_SESSION_DESCRIPTOR_OUTPUT_TYPE_NETWORK;