diff --git a/ui/cli/tap-rtspstat.c b/ui/cli/tap-rtspstat.c index 258b852eb0..28f5977ba0 100644 --- a/ui/cli/tap-rtspstat.c +++ b/ui/cli/tap-rtspstat.c @@ -202,7 +202,7 @@ rtspstat_draw(void *psp ) rtspstat_t *sp = (rtspstat_t *)psp; printf("\n"); printf("===================================================================\n"); - if (! sp->filter[0]) + if (!sp->filter || !sp->filter[0]) printf("RTSP Statistics\n"); else printf("RTSP Statistics with filter %s\n", sp->filter);