From a11bd5040c456a7edcd2cf05d08bc58153072101 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 14 Nov 2016 15:49:26 -0500 Subject: [PATCH] fix initialize stream which may be used in error paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/ctf/fs/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ctf/fs/fs.c b/plugins/ctf/fs/fs.c index 2a8cd621..ce9699dd 100644 --- a/plugins/ctf/fs/fs.c +++ b/plugins/ctf/fs/fs.c @@ -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; -- 2.34.1