From: Jérémie Galarneau Date: Mon, 14 Nov 2016 20:49:26 +0000 (-0500) Subject: fix initialize stream which may be used in error paths X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a11bd5040c456a7edcd2cf05d08bc58153072101;p=deliverable%2Fbabeltrace.git fix initialize stream which may be used in error paths Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/fs/fs.c b/plugins/ctf/fs/fs.c index 2a8cd621b..ce9699dd3 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;