summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-12 12:49:45 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-12 12:49:45 +0200
commit9c645ee7da2a82529ff3ed01d04e0893904d7702 (patch)
treedd1848a075fcdedcd6b7b2294881e8b16c218391 /flowtop.c
parentc0d19330c7df0a441545942e7ac87721c718edf4 (diff)
flowtop: set bug if screen is NULL
If this is ever the case, bail out. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c2
1 files changed, 2 insertions, 0 deletions
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);