Fix: Dereference of null pointer in ffiledialog.cpp

This commit is contained in:
Markus Gans 2017-04-08 13:41:37 +02:00
parent 7ead64f2b8
commit 62e00b69fc
1 changed files with 3 additions and 1 deletions

View File

@ -753,7 +753,9 @@ void FFileDialog::cb_processActivate (FWidget*, data_ptr)
while ( iter != end ) while ( iter != end )
{ {
if ( std::strcmp((*iter).name, input) == 0 && (*iter).type == DT_DIR ) if ( (*iter).name
&& std::strcmp((*iter).name, input) == 0
&& (*iter).type == DT_DIR )
{ {
found = true; found = true;
changeDir(input); changeDir(input);