altos: Clear callsign on initial config load
authorKeith Packard <keithp@keithp.com>
Fri, 26 Aug 2011 01:02:45 +0000 (18:02 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 26 Aug 2011 01:08:00 +0000 (18:08 -0700)
commit3bfe8df44b575ca430ffaa051e20faa955a06c03
tree214b3fa408c75facac4ffbffa8ae824c61c4ef13
parent93ecaf7f18f8f4c15953c2e80dc9e1b20d04fdfa
altos: Clear callsign on initial config load

Before being written the first time, ao_config will get set to 0xff
when the config storage is read. This leaves the tail of the callsign
filled with invalid bytes. Zero the whole thing before loading the
default callsign to make sure any extra bytes are set correctly.

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