summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index a0ed5c0f..fd194c1a 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -344,6 +344,7 @@ static bool monitor_raw_send( /*@in@*/ unsigned char *buf, size_t len)
void monitor_complain(const char *fmt, ...)
{
va_list ap;
+ assert(cmdwin!=NULL);
(void)wmove(cmdwin, 0, (int)strlen(type_name) + 2);
(void)wclrtoeol(cmdwin);
(void)wattrset(cmdwin, A_BOLD | A_BLINK);