diff --git a/common/dialogs/dialog_env_var_config.cpp b/common/dialogs/dialog_env_var_config.cpp index 4d7972dab9..fedca94b02 100644 --- a/common/dialogs/dialog_env_var_config.cpp +++ b/common/dialogs/dialog_env_var_config.cpp @@ -156,7 +156,7 @@ void DIALOG_ENV_VAR_CONFIG::PopulatePathList() bool DIALOG_ENV_VAR_CONFIG::GetPathAtIndex( unsigned int aIndex, wxString& aEnvVar, wxString& aEnvPath ) { - if( aIndex < 0 || aIndex > m_envVarMap.size() ) + if( aIndex > m_envVarMap.size() ) { return false; }