Assert that index_file does not exist before setting a new one
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 82d56ebb796910b28b86f417f7ec0f64a08de42b..5c7b00317dabb824f378858bb05234347eec424e 100644 (file)
@@ -2630,6 +2630,7 @@ int lttng_ustconsumer_on_recv_stream(struct lttng_consumer_stream *stream)
                        if (!index_file) {
                                goto error;
                        }
+                       assert(!stream->index_file);
                        stream->index_file = index_file;
                }
        }
This page took 0.022973 seconds and 4 git commands to generate.