Fix warning in read_label() and read_local()