Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
UT: Repaired broken C unit tests (--enable-tests)
[vpp.git]
/
src
/
vppinfra
/
test_heap.c
diff --git
a/src/vppinfra/test_heap.c
b/src/vppinfra/test_heap.c
index
3d5171b
..
95e64b7
100644
(file)
--- a/
src/vppinfra/test_heap.c
+++ b/
src/vppinfra/test_heap.c
@@
-86,7
+86,7
@@
main (int argc, char *argv[])
fformat (stderr, "%U\n", format_clib_mem_usage, /* verbose */ 0);
vec_resize (objects, 1000);
fformat (stderr, "%U\n", format_clib_mem_usage, /* verbose */ 0);
vec_resize (objects, 1000);
- if (vec_bytes (objects)
)
/* stupid warning be gone */
+ if (vec_bytes (objects)
> 0)
/* stupid warning be gone */
memset (objects, ~0, vec_bytes (objects));
vec_resize (handles, vec_len (objects));
memset (objects, ~0, vec_bytes (objects));
vec_resize (handles, vec_len (objects));