From 9cd9153a4d4cf78011d2a8f8c7a69aa8f3eda9f3 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Aug 2014 17:18:10 +0200 Subject: Fix mostly erroneous scanner warnings in tests --- common/tests/test-tests.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/tests/test-tests.c') diff --git a/common/tests/test-tests.c b/common/tests/test-tests.c index cd48a13..ba31d83 100644 --- a/common/tests/test-tests.c +++ b/common/tests/test-tests.c @@ -60,6 +60,7 @@ test_memory (void) if (getenv ("TEST_FAIL")) { mem = malloc (1); + assert (mem != NULL); free (mem); *mem = 1; } @@ -73,6 +74,7 @@ test_leak (void) if (getenv ("TEST_FAIL")) { mem = malloc (1); + assert (mem != NULL); *mem = 1; } } -- cgit v1.1