X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fsrc%2Fmetadata%2Ftsdl%2Fctf-meta-resolve.cpp;h=6f8ca2d9177d55d79f34ae04cc9cccaebb94a15c;hb=afb0f12beee7f3aa65156e27a76b627dfb3b52e1;hp=1f7ffe57c388d0930db9fdc843731c15980e8c17;hpb=a745c1904cb9637f78e0f6d8a1927b2dd05db436;p=babeltrace.git diff --git a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-resolve.cpp b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-resolve.cpp index 1f7ffe57..6f8ca2d9 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-resolve.cpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-resolve.cpp @@ -46,30 +46,30 @@ struct field_class_stack_frame */ struct resolve_context { - bt_logging_level log_level; + bt_logging_level log_level = (bt_logging_level) 0; /* Weak, exactly one of these must be set */ - bt_self_component *self_comp; - bt_self_component_class *self_comp_class; + bt_self_component *self_comp = nullptr; + bt_self_component_class *self_comp_class = nullptr; - struct ctf_trace_class *tc; - struct ctf_stream_class *sc; - struct ctf_event_class *ec; + struct ctf_trace_class *tc = nullptr; + struct ctf_stream_class *sc = nullptr; + struct ctf_event_class *ec = nullptr; struct { - struct ctf_field_class *packet_header; - struct ctf_field_class *packet_context; - struct ctf_field_class *event_header; - struct ctf_field_class *event_common_context; - struct ctf_field_class *event_spec_context; - struct ctf_field_class *event_payload; + struct ctf_field_class *packet_header = nullptr; + struct ctf_field_class *packet_context = nullptr; + struct ctf_field_class *event_header = nullptr; + struct ctf_field_class *event_common_context = nullptr; + struct ctf_field_class *event_spec_context = nullptr; + struct ctf_field_class *event_payload = nullptr; } scopes; /* Root scope being visited */ - enum ctf_scope root_scope; - field_class_stack_t *field_class_stack; - struct ctf_field_class *cur_fc; + enum ctf_scope root_scope = CTF_SCOPE_PACKET_HEADER; + field_class_stack_t *field_class_stack = nullptr; + struct ctf_field_class *cur_fc = nullptr; }; /* TSDL dynamic scope prefixes as defined in CTF Section 7.3.2 */