mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Ignore empty environment strings.
This commit is contained in:
parent
93d23a1568
commit
7c871f0ce4
@ -505,9 +505,9 @@ static LCID get_env_lcid( UINT *unix_cp, const char *env_str )
|
||||
char *buf, *lang,*country,*charset,*dialect,*next;
|
||||
LCID ret = 0;
|
||||
|
||||
if ((lang = getenv( "LC_ALL" )) ||
|
||||
(env_str && (lang = getenv( env_str ))) ||
|
||||
(lang = getenv( "LANG" )))
|
||||
if (((lang = getenv( "LC_ALL" )) && *lang) ||
|
||||
(env_str && (lang = getenv( env_str )) && *lang) ||
|
||||
((lang = getenv( "LANG" )) && *lang))
|
||||
{
|
||||
if (!strcmp(lang,"POSIX") || !strcmp(lang,"C")) goto done;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user