X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-ust.c;h=3d9390db22395885cc1f62e62c90bf9167040b93;hp=1fda555ea0e987bdcc11565b43ffea84b1d85765;hb=c617c0c651432f9d5ae7adf4c5c1a5fd92ad828e;hpb=bdd88757eedddd53dea46645574f218094573c74 diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 1fda555ea..3d9390db2 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -183,7 +183,6 @@ error: struct ltt_ust_session *trace_ust_create_session(char *path, unsigned int session_id, struct lttng_domain *domain) { - int ret; struct ltt_ust_session *lus; /* Allocate a new ltt ust session */ @@ -219,6 +218,8 @@ struct ltt_ust_session *trace_ust_create_session(char *path, /* Use the default consumer output which is the tracing session path. */ if (path && strlen(path) > 0) { + int ret; + ret = snprintf(lus->consumer->dst.trace_path, PATH_MAX, "%s" DEFAULT_UST_TRACE_DIR, path); if (ret < 0) {