[Piglit] [PATCH] arb_query_buffer_object: Silence Coverity unchecked return value defect.

Vinson Lee vlee at freedesktop.org
Fri Jul 1 21:39:41 UTC 2016


CID: 1361479
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_query_buffer_object/qbo.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/spec/arb_query_buffer_object/qbo.c b/tests/spec/arb_query_buffer_object/qbo.c
index 1bcbe1035fad..c00b53475383 100644
--- a/tests/spec/arb_query_buffer_object/qbo.c
+++ b/tests/spec/arb_query_buffer_object/qbo.c
@@ -263,9 +263,9 @@ run_subtest_and_present(void)
 	char *subtest_name;
 	enum piglit_result r = run_subtest();
 	piglit_present_results();
-	asprintf(&subtest_name, "query-%s-%s",
-		 piglit_get_gl_enum_name(query_type),
-		 sync_mode_names[sync_mode]);
+	(void)!asprintf(&subtest_name, "query-%s-%s",
+			piglit_get_gl_enum_name(query_type),
+			sync_mode_names[sync_mode]);
 	piglit_report_subtest_result(r, "%s", subtest_name);
 	free(subtest_name);
 	return r;
-- 
2.7.4



More information about the Piglit mailing list