Commit 91f094e7 authored by Joseph Huang's avatar Joseph Huang Committed by Ben Pfaff
Browse files

block: Avoid accessing past the end of the block_by_role array.

parent 1ec7b011
......@@ -166,7 +166,7 @@ block_print_stats (void)
int i;
for (i = 0; i < BLOCK_CNT; i++)
for (i = 0; i < BLOCK_ROLE_CNT; i++)
struct block *block = block_by_role[i];
if (block != NULL)
Supports Markdown
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