From 1662942c27c9adb1374bf766062a9871201ee361 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 16 Jul 2010 10:31:38 +0000 Subject: [PATCH] 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 --- src/common/translation.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.2