Language:
Free Online Dictionary|3Dict

飢不擇食

Source : CEDICT

when hungry, you can't pick what you eat (idiom); beggars can't be choosers/When matters are urgent, don't spend time choosing alternatives.