archive.c: avoid access to the_index