Fix dereference before null check in FVTerm::updateVTerm

This commit is contained in:
Markus Gans 2017-12-03 21:34:07 +01:00
parent 212172f522
commit 937cd8a0f0
1 changed files with 3 additions and 3 deletions

View File

@ -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);