ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 31 Mar 2017 05:10:31 +0000 (01:10 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:39 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/common/notif-iter/notif-iter.c

index c4b6f68da94b6b3c41c0489b6eaa4b72e76779fb..d82c9b85a6fe8bb7ad7d7d8d6f8d9d2cefdd915d 100644 (file)
@@ -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");
This page took 0.025342 seconds and 4 git commands to generate.