summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-19 14:13:18 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-19 14:14:51 +0200
commit76cdf2ffeafa6a516c15e5d50c20848205665872 (patch)
treea3194383e16d962779822115f635b2da21a32399 /sal
parent185dae1969bb463ae1be8ea46a7780efa32372f5 (diff)
ISO C++11 does not allow conversion from string literal to 'char *'
Change-Id: I098d0b8b3428cbf57a69c331515093df36e0c172
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/nlsupport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/nlsupport.cxx b/sal/osl/unx/nlsupport.cxx
index 03107ef4b1fe..a7e764059936 100644
--- a/sal/osl/unx/nlsupport.cxx
+++ b/sal/osl/unx/nlsupport.cxx
@@ -873,7 +873,7 @@ void _imp_getProcessLocale( rtl_Locale ** ppLocale )
locale = getenv( "LANG" );
if( NULL == locale )
- locale = "C";
+ locale = strdup("C");
}
/* return the locale */