Fix: lttng-ctl: _handle can be NULL
[lttng-tools.git] / src / lib / lttng-ctl / destruction-handle.c
index c6bb388ebcab793a97badf56e283c832f84b5378..b345c2834315f28bdaef0c0ddf6a4c129794b908 100644 (file)
@@ -394,7 +394,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name,
        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) {
                ret_code = LTTNG_ERR_INVALID;
                goto error;
        }
                ret_code = LTTNG_ERR_INVALID;
                goto error;
        }
This page took 0.023269 seconds and 4 git commands to generate.