cppcheck: Simplify empty string test without using strlen()
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index 12189b9ea7929695576f27a33a13b46fa9a6b3dd..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. */
@@ -143,7 +143,7 @@ alloc_error:
  * Return pointer to structure or NULL.
  */
 struct ltt_kernel_channel *trace_kernel_create_channel(
-               struct lttng_channel *chan, char *path)
+               struct lttng_channel *chan)
 {
        struct ltt_kernel_channel *lkc;
 
This page took 0.024335 seconds and 4 git commands to generate.