fix warnings
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 3 Apr 2017 20:32:28 +0000 (16:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:40 +0000 (12:57 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/debug-info/copy.c
plugins/libctfcopytrace/ctfcopytrace.c

index 6d27b95b1e2788c56b843d5249589709637c1c7b..892d879972dc8fcb45bb1627cbe5e4a69da624aa 100644 (file)
@@ -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;
index a2e2bffc7b3ee847552ae7d24f16b78f2ca6e51a..39c394bdc761b2398f920367cee927f36b19d420 100644 (file)
@@ -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;
 
This page took 0.025499 seconds and 4 git commands to generate.