diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-02-20 16:40:12 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-02-20 16:40:12 +0300 |
commit | fe2b1a09f03213ea4042add9b4ba63625d1aea22 (patch) | |
tree | b912a5fea559edeb40fdb2ba25a2789d819a7a8d /platform/preferred_languages.cpp | |
parent | b876eb7508c02928b418a564d574b75e33943951 (diff) |
[platform] Fix language detection on some linux systems
Diffstat (limited to 'platform/preferred_languages.cpp')
-rw-r--r-- | platform/preferred_languages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/preferred_languages.cpp b/platform/preferred_languages.cpp index 7cae56ece0..7b26271865 100644 --- a/platform/preferred_languages.cpp +++ b/platform/preferred_languages.cpp @@ -103,7 +103,7 @@ void GetSystemPreferred(vector<string> & languages) #elif defined(OMIM_OS_LINUX) // check environment variables char const * p = getenv("LANGUAGE"); - if (p) // LANGUAGE can contain several values divided by ':' + if (p && strlen(p)) // LANGUAGE can contain several values divided by ':' { string const str(p); strings::SimpleTokenizer iter(str, ":"); |