Fix: ds_file_group is checked instead of ds_file_group->stream
[babeltrace.git] / plugins / ctf / fs-src / fs.c
index 409a3dd4caa9857bafeaa3abe098b5098b0dc165..6f5517c07a168d3309cb0a8d548b51be8ae1b6fa 100644 (file)
@@ -377,6 +377,7 @@ end:
        return ret;
 }
 
+static
 uint64_t get_packet_header_stream_instance_id(struct ctf_fs_trace *ctf_fs_trace,
                struct bt_ctf_field *packet_header_field)
 {
@@ -898,7 +899,7 @@ int create_ds_file_groups(struct ctf_fs_trace *ctf_fs_trace)
 
                g_string_free(name, TRUE);
 
-               if (!ds_file_group) {
+               if (!ds_file_group->stream) {
                        BT_LOGE("Cannot create stream for DS file group: "
                                "addr=%p, stream-name=\"%s\"",
                                ds_file_group, name->str);
This page took 0.023726 seconds and 4 git commands to generate.