Mi: track/untrack/listing
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index 004b0ccebf1c7b24e49674e2f3d66d53bfde7abe..19b9e5117f3c6bf4696d74224f1de0d7f20e0fe9 100644 (file)
@@ -1954,7 +1954,7 @@ int lttng_create_session_live(const char *name, const char *url,
        struct lttcomm_session_msg lsm;
        struct lttng_uri *uris = NULL;
 
-       if (name == NULL) {
+       if (name == NULL || timer_interval == 0) {
                return -LTTNG_ERR_INVALID;
        }
 
@@ -2003,7 +2003,8 @@ end:
 int lttng_list_tracker_pids(struct lttng_handle *handle,
                int *_enabled, int32_t **_pids, size_t *_nr_pids)
 {
-       int ret, enabled = 1;
+       int ret;
+       int enabled = 1;
        struct lttcomm_session_msg lsm;
        size_t nr_pids;
        int32_t *pids;
This page took 0.025179 seconds and 4 git commands to generate.