altos: check for valid flight number in ao_log_delete
authorKeith Packard <keithp@keithp.com>
Wed, 12 Jan 2011 20:41:26 +0000 (12:41 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Jan 2011 20:41:26 +0000 (12:41 -0800)
commitd794ef9e0fbe4d13259db1bbd69f01717c14400b
tree098bfd628bfdf10ea45477ecab1f9915ba8c04a4
parent8801b8c1947bd39f7c985b91a2ba8dbc81bcc91a
altos: check for valid flight number in ao_log_delete

Zero is not a valid flight number, and ao_log_flight uses that to
indicate 'no flight in this slot'. Check the user-provided input for
zero before looking through the slots.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_log.c