From f3985ab106d89d8e764c1a8dd0c8bda09b755d10 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 31 Mar 2017 01:10:31 -0400 Subject: [PATCH] ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- plugins/ctf/common/notif-iter/notif-iter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ctf/common/notif-iter/notif-iter.c b/plugins/ctf/common/notif-iter/notif-iter.c index c4b6f68d..d82c9b85 100644 --- a/plugins/ctf/common/notif-iter/notif-iter.c +++ b/plugins/ctf/common/notif-iter/notif-iter.c @@ -2328,6 +2328,7 @@ struct bt_ctf_notif_iter *bt_ctf_notif_iter_create(struct bt_ctf_trace *trace, assert(trace); assert(medops.request_bytes); + assert(medops.get_stream); notit = g_new0(struct bt_ctf_notif_iter, 1); if (!notit) { PERR("Failed to allocate memory for CTF notification iterator\n"); -- 2.34.1