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