From: Philippe Proulx Date: Fri, 31 Mar 2017 05:10:31 +0000 (-0400) Subject: ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f3985ab106d89d8e764c1a8dd0c8bda09b755d10;p=deliverable%2Fbabeltrace.git ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/common/notif-iter/notif-iter.c b/plugins/ctf/common/notif-iter/notif-iter.c index c4b6f68da..d82c9b85a 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");