From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5E82B81D33 for ; Tue, 1 Nov 2016 19:10:36 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 01 Nov 2016 19:10:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,582,1473145200"; d="dat'59?scan'59,208,59";a="26719829" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga004.jf.intel.com with ESMTP; 01 Nov 2016 19:10:37 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 1 Nov 2016 19:10:37 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 1 Nov 2016 19:09:31 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.206]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.96]) with mapi id 14.03.0248.002; Wed, 2 Nov 2016 10:09:27 +0800 From: "Song, BinX" To: "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [PATCH] EdkCompatibilityPkg/PrintLite: Fix ErrorPrint() wrong NULL char check Thread-Index: AdI0riLw767HFqRdQ6WxbzoRY20nIw== Date: Wed, 2 Nov 2016 02:09:26 +0000 Message-ID: <559D2DF22BC9A3468B4FA1AA547F0EF135486C@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <559D2DF22BC9A3468B4FA1AA547F0EF135486C@shsmsx102.ccr.corp.intel.com> x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: [PATCH] EdkCompatibilityPkg/PrintLite: Fix ErrorPrint() wrong NULL char check X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2016 02:10:36 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable - '\0' -> NULL - https://bugzilla.tianocore.org/show_bug.cgi?id=3D47 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bell Song --- EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c = b/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c index e48cbe8..4abe14f 100644 --- a/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c +++ b/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c @@ -101,7 +101,7 @@ Returns: return 0; } =20 - if (ErrorString !=3D '\0') { + if (ErrorString !=3D NULL) { if (gST->StdErr !=3D NULL) { // // To be extra safe make sure StdErr has been initialized --=20 2.7.2.windows.1