Fix: liblttng-ctl: wrong variable used during argument validation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 00:28:39 +0000 (20:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 00:31:33 +0000 (20:31 -0400)
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>
src/lib/lttng-ctl/destruction-handle.c

index d2559646f8c18201f0a16e70cfffd9f81fe6aa2c..55e1604363bfd87648b91f7937fdcb58771d0c84 100644 (file)
@@ -404,7 +404,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name,
        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;
        }
This page took 0.034634 seconds and 4 git commands to generate.