summaryrefslogtreecommitdiff
path: root/epan/wmem/wmem_allocator_block.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-20 00:10:07 +0000
committerEvan Huus <eapache@gmail.com>2013-03-20 00:10:07 +0000
commit8a874b238eccfcbd46df77ef0cc7d2fb86018876 (patch)
tree3d4ed2b588f5b0ab6ea3f1db2ce9972edf3edd32 /epan/wmem/wmem_allocator_block.c
parentb7b30a7cdfd11ecdbb803d2c70c28690b0ab5af6 (diff)
downloadwireshark-8a874b238eccfcbd46df77ef0cc7d2fb86018876.tar.gz
Trivial tweaks to clean up cppcheck warnings.
svn path=/trunk/; revision=48435
Diffstat (limited to 'epan/wmem/wmem_allocator_block.c')
-rw-r--r--epan/wmem/wmem_allocator_block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wmem/wmem_allocator_block.c b/epan/wmem/wmem_allocator_block.c
index 4afd27009a..0ccbc4d45b 100644
--- a/epan/wmem/wmem_allocator_block.c
+++ b/epan/wmem/wmem_allocator_block.c
@@ -178,7 +178,7 @@ wmem_block_debug_chunk_chain(wmem_block_chunk_t *chunk)
printf("VERIFYING CHUNK CHAIN\n");
g_assert(chunk->prev == 0);
- while (chunk) {
+ do {
total_len += chunk->len;
if (WMEM_CHUNK_NEXT(chunk)) {
@@ -186,7 +186,7 @@ wmem_block_debug_chunk_chain(wmem_block_chunk_t *chunk)
}
chunk = WMEM_CHUNK_NEXT(chunk);
- }
+ } while (chunk);
g_assert(total_len == WMEM_BLOCK_SIZE);
}