summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-09 09:00:40 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-09 09:00:40 -0400
commita6f20e590e9b485822befc3542caa1f21cdff676 (patch)
tree0a7a6857dda2943dc5189eff368067f1bd3cf915 /gpsmon.c
parentafe4984bb17a7a72764b84d7b959dc0431d0a130 (diff)
downloadgpsd-a6f20e590e9b485822befc3542caa1f21cdff676.tar.gz
const and splint cleanup.
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);