- for (i=0;i<BLOCKLOG;i++) {
- xbt_swag_init(&(mdp->fraghead[i]),
- xbt_swag_offset(mi, freehook));
+ for (int i = 0; i < BLOCKLOG; i++) {
+ malloc_info mi; /* to compute the offset of the swag hook */
+ xbt_swag_init(&(mdp->fraghead[i]), xbt_swag_offset(mi, freehook));