From: Robert Roebling Date: Fri, 16 Jul 2010 10:31:38 +0000 (+0000) Subject: Don't pass NULL to wxDir, rather hop over when trying to find dir with translation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1662942c27c9adb1374bf766062a9871201ee361 Don't pass NULL to wxDir, rather hop over when trying to find dir with translation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 23b57a056c..c6bb8440e0 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -1741,6 +1741,8 @@ wxArrayString wxFileTranslationsLoader::GetAvailableTranslations(const wxString& i != prefixes.end(); ++i ) { + if (i->length() == 0) + continue; wxDir dir; if ( !dir.Open(*i) ) continue;