From 03a1e3e87d23d50831370763289ab5f5169eb872 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sat, 2 Sep 2000 07:20:29 +0000 Subject: [PATCH] fixing code that relied on implicit string construction. r=scc --- intl/locale/src/nsLocaleService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intl/locale/src/nsLocaleService.cpp b/intl/locale/src/nsLocaleService.cpp index e51ddff2fa77..58619669259b 100644 --- a/intl/locale/src/nsLocaleService.cpp +++ b/intl/locale/src/nsLocaleService.cpp @@ -252,7 +252,7 @@ nsLocaleService::nsLocaleService(void) else { char* lang = getenv("LANG"); if ( lang == nsnull ) { - nsCAutoString langcstr = "en-US"; + nsCAutoString langcstr("en-US"); lang = nsCRT::strdup( langcstr.GetBuffer() ); result = posixConverter->GetXPLocale(lang,&xpLocale); nsCRT::free(lang);