Skip to content

Commit

Permalink
Merge branch 'upsilon-dev' of github.com:UpsilonNumworks/Upsilon into…
Browse files Browse the repository at this point in the history
… upsilon-dev
  • Loading branch information
Yaya-Cout committed Jun 6, 2024
2 parents 16d1946 + ac71576 commit 3b22656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ion/src/simulator/linux/platform_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Platform {
const char * languageCode() {
static char buffer[3] = {0};
char * locale = setlocale(LC_ALL, "");
if (locale[2] == '_') {
if (locale && locale[2] == '_') { // Check if locale is not null before accessing its elements
buffer[0] = locale[0];
buffer[1] = locale[1];
return buffer;
Expand Down

0 comments on commit 3b22656

Please sign in to comment.