Fix bug in Unicode colloation that causes ASSERT on BeagleBoard. PlatformLang or Lang variables are not processed correctly. NULL pointer is passed if no variable exists.

(based on FatPkg commit 0e3c94b9ac164caf705cc512a0e865fa0811b531)

[jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Andrew Fish <afish@apple.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Andrew Fish 2009-12-15 22:15:22 +00:00 committed by Jordan Justen
parent 05bcb9e8dd
commit dcc3386bd1
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ InitializeUnicodeCollationSupportWorker (
BestLanguage = GetBestLanguage (
Uci->SupportedLanguages,
Iso639Language,
(Language == NULL) ? Language : "",
(Language == NULL) ? "" : Language,
DefaultLanguage,
NULL
);