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

2014-05-06 Thread Kristian Høgsberg
On Mon, May 05, 2014 at 02:45:20PM -0700, U. Artie Eoff wrote:
 Signed-off-by: U. Artie Eoff ullysses.a.e...@intel.com

Applied, thanks.

 ---
  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
 
 ___
 wayland-devel mailing list
 wayland-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/wayland-devel
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


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

2014-05-05 Thread U. Artie Eoff
Signed-off-by: U. Artie Eoff ullysses.a.e...@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

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel