Commit 7c871f0c authored by Alexandre Julliard's avatar Alexandre Julliard

Ignore empty environment strings.

parent 93d23a15
...@@ -505,9 +505,9 @@ static LCID get_env_lcid( UINT *unix_cp, const char *env_str ) ...@@ -505,9 +505,9 @@ static LCID get_env_lcid( UINT *unix_cp, const char *env_str )
char *buf, *lang,*country,*charset,*dialect,*next; char *buf, *lang,*country,*charset,*dialect,*next;
LCID ret = 0; LCID ret = 0;
if ((lang = getenv( "LC_ALL" )) || if (((lang = getenv( "LC_ALL" )) && *lang) ||
(env_str && (lang = getenv( env_str ))) || (env_str && (lang = getenv( env_str )) && *lang) ||
(lang = getenv( "LANG" ))) ((lang = getenv( "LANG" )) && *lang))
{ {
if (!strcmp(lang,"POSIX") || !strcmp(lang,"C")) goto done; if (!strcmp(lang,"POSIX") || !strcmp(lang,"C")) goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment