From 9c645ee7da2a82529ff3ed01d04e0893904d7702 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Wed, 12 Jun 2013 12:49:45 +0200 Subject: flowtop: set bug if screen is NULL If this is ever the case, bail out. Signed-off-by: Daniel Borkmann --- flowtop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flowtop.c b/flowtop.c index 95734df..a21ff34 100644 --- a/flowtop.c +++ b/flowtop.c @@ -917,6 +917,8 @@ static void presenter_screen_update(WINDOW *screen, struct flow_list *fl, [IPPROTO_ICMPV6] = 1, }; + bug_on(screen == NULL); + curs_set(0); maxy = getmaxy(screen); -- cgit v1.2.3-54-g00ecf