Allow ctf-writer to use new time-keeping facilities
[babeltrace.git] / formats / ctf / ir / stream-class.c
index d1cac621a8b022681534436e0196f7f151699978..f5b8923360c9d40f6e4a9e76a97fe11a5529b9d9 100644 (file)
@@ -421,7 +421,7 @@ int bt_ctf_stream_class_add_event_class(
 
        /* Only set an event ID if none was explicitly set before */
        *event_id = bt_ctf_event_class_get_id(event_class);
-       if (event_id < 0) {
+       if (*event_id < 0) {
                if (bt_ctf_event_class_set_id(event_class,
                        stream_class->next_event_id++)) {
                        ret = -1;
This page took 0.023998 seconds and 4 git commands to generate.