飢不擇食

Idiom

 * 1)  to be not choosy when one is hungry or when matters are urgent; beggars can't be choosers