X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-ust.c;h=5e06a845242b79293d78add5d8f30d4e2bc81579;hb=d88aee689d5bd0067f362a323cb69c37717df59f;hp=81bf535f626c6996a730c7c9e3807773ae87ce93;hpb=30079b6ba2522a6c3ac329fcaaa779bd4bf04f4a;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 81bf535f6..5e06a8452 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -216,7 +216,7 @@ struct ltt_ust_session *trace_ust_create_session(char *path, lus->tmp_consumer = NULL; /* Use the default consumer output which is the tracing session path. */ - if (path && strlen(path) > 0) { + if (*path != '\0') { int ret; ret = snprintf(lus->consumer->dst.trace_path, PATH_MAX,