X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fconfig.c;h=722904772316c0fc0b48f548817a472e051247a1;hp=e74e20f6c016e2fbbfe101c19a52fa0f6de93e18;hb=b664f89a924cc708174003a2b570f5a221905b8e;hpb=1a2416565951eff19530564c552931cc71866e8c diff --git a/src/common/config/config.c b/src/common/config/config.c index e74e20f6c..722904772 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -1222,11 +1222,12 @@ int create_session(const char *name, /* network destination */ if (live_timer_interval && live_timer_interval != UINT64_MAX) { - const char *url = output.control_uri ? - output.control_uri : output.data_uri; - - /* URL has to be provided, even if we'll overwrite it after. */ - ret = lttng_create_session_live(name, url, live_timer_interval); + /* + * URLs are provided for sure since the test above make sure that + * with a live timer the data and control URIs are provided. So, + * NULL is passed here and will be set right after. + */ + ret = lttng_create_session_live(name, NULL, live_timer_interval); } else { ret = lttng_create_session(name, NULL); }