Found by clang analyzer. Probably doesn't matter in practice, because the number of entries was 0 when entries was NULL.