From f6f999a3509cbcdd6840b674a40c29d7095d3b1e Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Mon, 3 Apr 2017 16:32:28 -0400 Subject: [PATCH] fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- plugins/debug-info/copy.c | 4 ++-- plugins/libctfcopytrace/ctfcopytrace.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/debug-info/copy.c b/plugins/debug-info/copy.c index 6d27b95b..892d8799 100644 --- a/plugins/debug-info/copy.c +++ b/plugins/debug-info/copy.c @@ -1457,7 +1457,7 @@ struct bt_ctf_event *debug_info_copy_event(FILE *err, struct bt_ctf_event *event struct debug_info_component *component) { struct bt_ctf_event *writer_event = NULL; - struct bt_ctf_field *field, *copy_field = NULL; + struct bt_ctf_field *field = NULL, *copy_field = NULL; int ret; writer_event = bt_ctf_event_create(writer_event_class); @@ -1554,7 +1554,7 @@ struct bt_ctf_event *debug_info_output_event( struct bt_ctf_event_class *event_class = NULL, *writer_event_class = NULL; struct bt_ctf_stream_class *stream_class = NULL, *writer_stream_class = NULL; struct bt_ctf_event *writer_event = NULL; - struct bt_ctf_packet *packet, *writer_packet = NULL; + struct bt_ctf_packet *packet = NULL, *writer_packet = NULL; struct bt_ctf_trace *writer_trace = NULL; struct debug_info *debug_info; const char *event_name; diff --git a/plugins/libctfcopytrace/ctfcopytrace.c b/plugins/libctfcopytrace/ctfcopytrace.c index a2e2bffc..39c394bd 100644 --- a/plugins/libctfcopytrace/ctfcopytrace.c +++ b/plugins/libctfcopytrace/ctfcopytrace.c @@ -527,7 +527,7 @@ struct bt_ctf_field *ctf_copy_packet_context(FILE *err, struct bt_ctf_field *packet_context = NULL, *writer_packet_context = NULL; struct bt_ctf_field_type *struct_type = NULL, *writer_packet_context_type = NULL; struct bt_ctf_stream_class *writer_stream_class = NULL; - struct bt_ctf_field *field; + struct bt_ctf_field *field = NULL; struct bt_ctf_field_type *field_type; int nr_fields, i; -- 2.34.1