From: Julien Desfossez Date: Thu, 25 May 2017 20:47:10 +0000 (-0400) Subject: fix: bt_put on potentially unintialized variable X-Git-Tag: v2.0.0-pre1~171 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=9571c7092da5031f7f3caf4c85fd5ff759c0d9d5 fix: bt_put on potentially unintialized variable Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- 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);