Local 'handle' variable is used to check for NULL arguments while
the provided argument is named '_handle'. This results in failures
to destroy a session.
Rename the variable used in the argument check.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
int sessiond_socket = -1;
struct lttng_destruction_handle *handle = NULL;
int sessiond_socket = -1;
struct lttng_destruction_handle *handle = NULL;
- if (!session_name || !handle) {
+ if (!session_name || !_handle) {
ret_code = LTTNG_ERR_INVALID;
goto error;
}
ret_code = LTTNG_ERR_INVALID;
goto error;
}