From 77e283cc8fda4ced8527a2cfc6fd4c863d9b86a4 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Thu, 30 Apr 2015 13:46:00 -0700 Subject: More trailing whitespace fixups. --- monitor_nmea0183.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor_nmea0183.c') diff --git a/monitor_nmea0183.c b/monitor_nmea0183.c index ff34b8f9..e664f9a6 100644 --- a/monitor_nmea0183.c +++ b/monitor_nmea0183.c @@ -220,7 +220,7 @@ static void nmea_update(void) /* can be NULL if packet was overlong */ fields = session.nmea.field; - if (session.lexer.outbuffer[0] == (unsigned char)'$' + if (session.lexer.outbuffer[0] == (unsigned char)'$' && fields != NULL && fields[0] != NULL) { int ymax, xmax; timestamp_t now; -- cgit v1.2.1