cppcheck: Simplify empty string test without using strlen()
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index d3742be16e944c55adac4ab339bb021854b5ef96..53053f2067c6a8b20cc92f0b6a3019fb360c473b 100644 (file)
@@ -109,7 +109,7 @@ struct ltt_kernel_session *trace_kernel_create_session(char *path)
         */
        lks->tmp_consumer = NULL;
 
-       if (path && strlen(path) > 0) {
+       if (*path != '\0') {
                int ret;
 
                /* Use the default consumer output which is the tracing session path. */
This page took 0.023048 seconds and 4 git commands to generate.