aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-03-10 17:49:53 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-03-10 17:49:53 +0000
commit85f98b5cfcbfae1b66d57453009c9ea254ab0bbb (patch)
tree07c5387d1e531c85e753b32f7452185b2b45377f /epan/emem.c
parent98387d0498fb0163e2a309336efd68f76d91a42a (diff)
r30032 again, actually make emem_verify_pointer() works with glib chunks.
after allocating glib chunk, amount_free should be 0, and free_offset should be set to chunk size. svn path=/trunk/; revision=48233
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/emem.c b/epan/emem.c
index 931c953384..fd50af4f2c 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -831,8 +831,8 @@ emem_alloc_glib(size_t size, emem_pool_t *mem)
mem->used_list=npc;
/* There's no padding/alignment involved (from our point of view) when
* we fetch the memory directly from the system pool, so WYSIWYG */
- npc->free_offset = npc->free_offset_init = 0;
- npc->amount_free = npc->amount_free_init = (unsigned int) size;
+ npc->amount_free = npc->free_offset_init = 0;
+ npc->free_offset = npc->amount_free_init = (unsigned int) size;
return npc->buf;
}