Commit c0c1d592 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

found a bug in the test with icc on linux. addresses #1032

git-svn-id: file:///svn/toku/tokudb.1032b@7809 c7de825b-a66e-492c-adef-691d508d4ae1
parent d9c508fa
......@@ -34,9 +34,11 @@ test_mempool_malloc_mfree (size_t size) {
void *vp[size];
size_t i;
for (i=0;; i++) {
vp[i] = toku_mempool_malloc(&mempool, 1, 1);
if (vp[i] == 0)
void *tp = toku_mempool_malloc(&mempool, 1, 1);
if (tp == 0)
break;
assert(i < size);
vp[i] = tp;
}
assert(i == size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment