fix memmaps_getnext uninitialized variable use