From: Hao Wu Date: Thu, 24 Nov 2016 02:49:46 +0000 (+0800) Subject: MdeModulePkg/EbcDebugger: Compare ASCII char with '\0' X-Git-Tag: edk2-stable201903~5079 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=45b18ce5b121849b01ac982c338565b9dcd8e2f4 MdeModulePkg/EbcDebugger: Compare ASCII char with '\0' Current code is using L'\0' to compare with a ASCII char. Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Jiewen Yao --- diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c index 558fe91821..555ee96d48 100644 --- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c +++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2007, Intel Corporation +Copyright (c) 2007 - 2016, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -882,7 +882,7 @@ Routine Description: return NULL; } - if (*Begin == L'\0') { + if (*Begin == '\0') { mAsciiFieldBuffer = NULL; return NULL; }