Skip to content
Commit 4abaee5d authored by Mike Hommey's avatar Mike Hommey
Browse files

Avoid getting the same default zone twice in a row.

847ff223 added a call to malloc_default_zone() before the main loop in
register_zone, effectively making malloc_default_zone() called twice
without any different outcome expected in the returned result.

It is also called once at the beginning, and a second time at the end
of the loop block.

Instead, call it only once per iteration.
parent 47b34dd3
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