altoslib: Check for null state.gps before accessing it in eeprom records
authorKeith Packard <keithp@keithp.com>
Tue, 16 Apr 2013 06:14:22 +0000 (23:14 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 16 Apr 2013 06:14:22 +0000 (23:14 -0700)
Used to be we'd set state.gps to garbage before seeing the first GPS
record; now we leave it null, which will cause crashes for code that
doesn't expect it. The code for reading and replaying eeprom data was
not checking and was nicely crashing as a result.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found