Looks like `c_npop' in debug.c has the same problem, in the case where top == arena. Presumably, this code was copied from garcol.c and adapted.