]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UefiHiiLib:Fix incorrect comparison expression
authorDandan Bi <dandan.bi@intel.com>
Sat, 1 Apr 2017 02:31:14 +0000 (10:31 +0800)
committerHao Wu <hao.a.wu@intel.com>
Wed, 5 Apr 2017 03:26:55 +0000 (11:26 +0800)
commitfe4a28ccbfd33cae9e1f56b174d46b4eb2329efd
tree37de8be5957859abb375b509c85ce9e5c09eb895
parent490433ab847cf318f31f73bbbc1a503ae47370a4
MdeModulePkg/UefiHiiLib:Fix incorrect comparison expression

Fix the incorrect comparison between pointer and constant zero character.

https://bugzilla.tianocore.org/show_bug.cgi?id=416

V2: The pointer StringPtr points to a string returned
by ExtractConfig/ExportConfig, if it is NULL, function
InternalHiiIfrValueAction will return FALSE. So in
current usage model, the StringPtr can not be NULL before
using it, so we can add ASSERT here.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Library/UefiHiiLib/HiiLib.c