From 9571c7092da5031f7f3caf4c85fd5ff759c0d9d5 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Thu, 25 May 2017 16:47:10 -0400 Subject: [PATCH] fix: bt_put on potentially unintialized variable 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/libctfcopytrace/ctfcopytrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libctfcopytrace/ctfcopytrace.c b/plugins/libctfcopytrace/ctfcopytrace.c index 9789e5c4..99a332be 100644 --- a/plugins/libctfcopytrace/ctfcopytrace.c +++ b/plugins/libctfcopytrace/ctfcopytrace.c @@ -538,7 +538,7 @@ struct bt_ctf_field *ctf_copy_packet_context(FILE *err, 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 = NULL; - struct bt_ctf_field_type *field_type; + struct bt_ctf_field_type *field_type = NULL; int nr_fields, i; packet_context = bt_ctf_packet_get_context(packet); -- 2.34.1