Fix: assume that conditions are valid before being compared
[lttng-tools.git] / src / common / session-consumed-size.c
index 6ff1c24866cd93da6c02bb60920a27004f027bce..e60437d13d3177294d714965dace7212c62b498d 100644 (file)
@@ -136,8 +136,9 @@ bool lttng_condition_session_consumed_size_is_equal(const struct lttng_condition
                }
        }
 
-       if ((a->session_name && !b->session_name) ||
-                       (!a->session_name && b->session_name)) {
+       assert(a->session_name);
+       assert(b->session_name);
+       if (strcmp(a->session_name, b->session_name)) {
                goto end;
        }
 
This page took 0.033414 seconds and 4 git commands to generate.