summaryrefslogtreecommitdiff
path: root/sal/osl/unx/nlsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/nlsupport.c')
-rw-r--r--sal/osl/unx/nlsupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/nlsupport.c b/sal/osl/unx/nlsupport.c
index b0f231f5c539..60e21b8e8aa1 100644
--- a/sal/osl/unx/nlsupport.c
+++ b/sal/osl/unx/nlsupport.c
@@ -911,7 +911,7 @@ void _imp_getProcessLocale( rtl_Locale ** ppLocale )
/* No locale environment variables on Android, so why even bother
* with getenv().
*/
- locale = "en-US.UTF-8";
+ char * locale = "en-US.UTF-8";
#else
/* simulate behavior off setlocale */
char * locale = getenv( "LC_ALL" );
@@ -925,8 +925,8 @@ void _imp_getProcessLocale( rtl_Locale ** ppLocale )
if( NULL == locale )
locale = "C";
- *ppLocale = _parse_locale( locale );
#endif
+ *ppLocale = _parse_locale( locale );
}
#endif