[PATCH wayland 2/2] connection-test: check malloc result

U. Artie Eoff ullysses.a.eoff at intel.com
Mon May 5 14:45:20 PDT 2014


Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
---
 tests/connection-test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/connection-test.c b/tests/connection-test.c
index 1213875..659bf68 100644
--- a/tests/connection-test.c
+++ b/tests/connection-test.c
@@ -516,6 +516,8 @@ TEST(connection_marshal_too_big)
 	struct marshal_data data;
 	char *big_string = malloc(5000);
 
+	assert(big_string);
+
 	memset(big_string, ' ', 4999);
 	big_string[4999] = '\0';
 
-- 
1.9.0



More information about the wayland-devel mailing list