Fix: relayd: failure to read index entry or stream packet after clear
[lttng-tools.git] / src / common / trace-chunk.c
index ec52e5d2b3e30598216e26bf1f8eea6fd7a2ae9a..a18b2077e5dc9c35680d96507c7491f515824471 100644 (file)
@@ -1834,7 +1834,12 @@ bool lttng_trace_chunk_ids_equal(const struct lttng_trace_chunk *chunk_a,
 {
        bool equal = false;
 
-       if (!chunk_a || !chunk_b) {
+       if (chunk_a == chunk_b) {
+               equal = true;
+               goto end;
+       }
+
+       if (!!chunk_a ^ !!chunk_b) {
                goto end;
        }
 
This page took 0.025705 seconds and 5 git commands to generate.