1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00

Minor bug fix: the done variable must be initialised before use

This commit is contained in:
John Zaitseff 2011-07-19 14:36:00 +10:00
parent 625f265108
commit 7eafa205e7

View File

@ -300,7 +300,8 @@ void visit_bank (void)
curs_set(CURS_ON);
wrefresh(curwin);
do {
done = false;
while (! done) {
key = gettxchar(curwin);
switch (key) {
@ -318,7 +319,7 @@ void visit_bank (void)
beep();
break;
}
} while (! done);
}
curs_set(CURS_OFF);
wechochar(curwin, key | A_BOLD);
@ -554,7 +555,8 @@ void trade_shares (int num, bool *bid_used)
curs_set(CURS_ON);
wrefresh(curwin);
do {
done = false;
while (! done) {
key = gettxchar(curwin);
switch (key) {
@ -573,7 +575,7 @@ void trade_shares (int num, bool *bid_used)
beep();
break;
}
} while (! done);
}
curs_set(CURS_OFF);
wechochar(curwin, key | A_BOLD);