From 6de1e6063705bafc4abc75c7a8e81cb106b2c5a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 27 May 2017 14:26:06 -0400 Subject: [PATCH] Fix: possible NULL dereference of uuid in test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_writer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 5dd3145b..8942f2f1 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -2841,6 +2841,7 @@ void test_trace_uuid(void) "bt_ctf_trace_set_uuid() succeeds with a valid UUID"); ret_uuid = bt_ctf_trace_get_uuid(trace); ok(ret_uuid, "bt_ctf_trace_get_uuid() returns a UUID"); + assert(ret_uuid); ok(memcmp(uuid, ret_uuid, 16) == 0, "bt_ctf_trace_get_uuid() returns the expected UUID"); -- 2.34.1