Fixed a crash bug in get_local_name() when the file list is empty.