diff --git a/src/ffiledialog.cpp b/src/ffiledialog.cpp index 02cec4a1..1905bf90 100644 --- a/src/ffiledialog.cpp +++ b/src/ffiledialog.cpp @@ -753,7 +753,9 @@ void FFileDialog::cb_processActivate (FWidget*, data_ptr) 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; changeDir(input);