cppcheck: Simplify empty string test without using strlen()
[lttng-tools.git] / src / bin / lttng-sessiond / trace-ust.c
index 81bf535f626c6996a730c7c9e3807773ae87ce93..5e06a845242b79293d78add5d8f30d4e2bc81579 100644 (file)
@@ -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,
This page took 0.024924 seconds and 5 git commands to generate.