From 937cd8a0f0589db0170e03dbcb4899a818643e52 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sun, 3 Dec 2017 21:34:07 +0100 Subject: [PATCH] Fix dereference before null check in FVTerm::updateVTerm --- src/fvterm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fvterm.cpp b/src/fvterm.cpp index bf8626de..67142d1a 100644 --- a/src/fvterm.cpp +++ b/src/fvterm.cpp @@ -1382,6 +1382,9 @@ void FVTerm::updateVTerm (term_area* area) { // Update area data on VTerm + if ( ! area || ! area->visible ) + return; + int ax = area->offset_left , ay = area->offset_top , aw = area->width @@ -1391,9 +1394,6 @@ void FVTerm::updateVTerm (term_area* area) , ol = 0 // Outside left , y_end; - if ( ! area || ! area->visible ) - return; - // Call the processing handler methods callPreprocessingHandler(area);