aboutsummaryrefslogtreecommitdiff
path: root/core/test/run-malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/test/run-malloc.c')
-rw-r--r--core/test/run-malloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/test/run-malloc.c b/core/test/run-malloc.c
index 345fb21..bbd2a48 100644
--- a/core/test/run-malloc.c
+++ b/core/test/run-malloc.c
@@ -79,6 +79,7 @@ int main(void)
{
char *test_heap = real_malloc(TEST_HEAP_SIZE);
char *p, *p2, *p3, *p4;
+ char *pr;
size_t i;
/* Use malloc for the heap, so valgrind can find issues. */
@@ -169,7 +170,8 @@ int main(void)
p3 = malloc(100);
p4 = malloc(100);
free(p2);
- realloc(p,216);
+ pr = realloc(p,216);
+ assert(pr);
free(p3);
free(p);
free(p4);