summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-05-05 14:45:20 -0700
committerKristian Høgsberg <krh@bitplanet.net>2014-05-06 14:59:33 -0700
commitb41ded812dfd23917300b1927d06299d66368d03 (patch)
treecd36afcb0669ac150c6c3567996fe8e44802b7c7
parent7a17b051876d475fb7cd39e9e16f2a61e241a4ad (diff)
connection-test: check malloc result
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--tests/connection-test.c2
1 files changed, 2 insertions, 0 deletions
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';