return event;
error:
free(event);
- event = NULL;
+ event = nullptr;
goto end;
}
* This can happen since the lttng_event structure is
* used for other tasks where this pointer is never set.
*/
- *filter_expression = NULL;
+ *filter_expression = nullptr;
goto end;
}
const struct lttng_userspace_probe_location *
lttng_event_get_userspace_probe_location(const struct lttng_event *event)
{
- struct lttng_userspace_probe_location *probe_location = NULL;
+ struct lttng_userspace_probe_location *probe_location = nullptr;
struct lttng_event_extended *event_extended;
if (!event) {