diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-05 11:53:00 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-05 11:53:00 +1100 |
commit | f752d2a51f86ffa1e8101676a450a7d933f78d75 (patch) | |
tree | aacd86661f9954335f1f6f60f44be71c92717c4e /core/test/run-malloc.c | |
parent | 4e6b385fd50a74fd47396dc150b51a0bada2aa87 (diff) | |
download | skiboot-f752d2a51f86ffa1e8101676a450a7d933f78d75.zip skiboot-f752d2a51f86ffa1e8101676a450a7d933f78d75.tar.gz skiboot-f752d2a51f86ffa1e8101676a450a7d933f78d75.tar.bz2 |
Fix unused result of realloc warning in core/test/run-malloc.c
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/test/run-malloc.c')
-rw-r--r-- | core/test/run-malloc.c | 4 |
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); |