menu: initialize cm (current menu) before empty check
authorH. Peter Anvin <hpa@zytor.com>
Mon, 17 Aug 2009 19:26:08 +0000 (12:26 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 17 Aug 2009 19:26:08 +0000 (12:26 -0700)
commit1e5b3e683aacab3f866abfa36e162177e80b6836
treeb3606e3b9894abe50d13483746c93bcb85a932d4
parent967ae0b3395e23b2f9e40d3981932a4202360504
menu: initialize cm (current menu) before empty check

The empty check in the menu system used "cm", but before "cm" had
actually been initialized.  Move the "cm" initialization earlier so we
do the right thing here.

Reported-by: CKSoon <cksoon79@yahoo.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/menu/menumain.c