Merge branch 'upsilon-dev' of github.com:UpsilonNumworks/Upsilon into upsilon-dev

This commit is contained in:
Yaya-Cout
2024-06-06 11:18:06 +02:00

View File

@@ -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;