X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=plugins%2Fctf%2Ffs-sink%2Ftranslate-trace-ir-to-ctf-ir.c;h=699b3a5b620d9bb6abb81994704285662f6819f6;hp=d3144a18105a5f4ab096ffa5c609839dc1afa63f;hb=11476be369af3c9e283803c64c494f21dfc79e06;hpb=00f1e7d36648d1dfbb73e89b4ac69396d44e9b06 diff --git a/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c b/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c index d3144a18..699b3a5b 100644 --- a/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c +++ b/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c @@ -896,8 +896,8 @@ end: * sequence field class. */ static -int set_field_refs(struct fs_sink_ctf_field_class *fc, const char *fc_name, - struct fs_sink_ctf_field_class *parent_fc) +int set_field_refs(struct fs_sink_ctf_field_class * const fc, + const char *fc_name, struct fs_sink_ctf_field_class *parent_fc) { int ret = 0; enum fs_sink_ctf_field_class_type fc_type; @@ -912,7 +912,7 @@ int set_field_refs(struct fs_sink_ctf_field_class *fc, const char *fc_name, uint64_t i; uint64_t len; struct fs_sink_ctf_field_class_struct *struct_fc; - struct fs_sink_ctf_field_class_variant *var_fc; + struct fs_sink_ctf_field_class_variant *var_fc = NULL; struct fs_sink_ctf_named_field_class *named_fc; if (fc_type == FS_SINK_CTF_FIELD_CLASS_TYPE_STRUCT) {