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