Skip to content

Commit b65f77e

Browse files
committed
Minor improvement
1 parent 59c60d1 commit b65f77e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Platform.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const char * CPlatform::GetICUDataFile()
2828
#else
2929
boost::filesystem::path icu_data_path = getenv("HOME");
3030
#endif
31+
if (icu_data_user == nullptr)
32+
return nullptr
3133

3234
if (boost::filesystem::is_directory(icu_data_path)) {
3335
icu_data_path /= icu_data_user;

0 commit comments

Comments
 (0)