Fix: ctf.fs source: append all ctf_fs_trace objects to component's list
[babeltrace.git] / plugins / ctf / fs-src / fs.c
index 6fc53e3c30da2f47f917e09c735defdbdd03b2eb..57468fbf1a7af44d319d6f8ae545ed022e52e449 100644 (file)
@@ -662,10 +662,11 @@ int create_ctf_fs_traces(struct ctf_fs_component *ctf_fs,
                                trace_path->str);
                        goto error;
                }
+
+               g_ptr_array_add(ctf_fs->traces, ctf_fs_trace);
+               ctf_fs_trace = NULL;
        }
 
-       g_ptr_array_add(ctf_fs->traces, ctf_fs_trace);
-       ctf_fs_trace = NULL;
        goto end;
 
 error:
This page took 0.023669 seconds and 4 git commands to generate.