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-Tag: v2.0.0-pre1~422 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=f3985ab106d89d8e764c1a8dd0c8bda09b755d10 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 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");