fix initialize stream which may be used in error paths
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 14 Nov 2016 20:49:26 +0000 (15:49 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/fs/fs.c

index 2a8cd621b338c55a55d940796995b8c0a38dcfd1..ce9699dd3e384699bd7d614eccf6d103cda9dbaf 100644 (file)
@@ -241,7 +241,7 @@ enum bt_notification_iterator_status ctf_fs_iterator_next(
                struct bt_notification_iterator *iterator)
 {
        int heap_ret;
-       struct bt_ctf_stream *stream;
+       struct bt_ctf_stream *stream = NULL;
        struct ctf_fs_stream *fs_stream;
        struct bt_notification *notification;
        struct bt_notification *next_stream_notification;
This page took 0.025109 seconds and 4 git commands to generate.