Cc: Eric Dong <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <[email protected]>
Reviewed-by: Eric Dong <[email protected]>
---
 MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c 
b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
index 9a18dec..1938ff2 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
@@ -1,9 +1,9 @@
 /** @file
 Utility functions for expression evaluation.
 
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
 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
 http://opensource.org/licenses/bsd-license.php
 
@@ -3134,11 +3134,11 @@ EvaluateExpression (
           Data1.Value.b = TRUE;
           break;
         case EFI_HII_VARSTORE_NAME_VALUE:
           if (OpCode->ValueType != EFI_IFR_TYPE_STRING) {
             NameValue = AllocateZeroPool ((OpCode->ValueWidth * 2 + 1) * 
sizeof (CHAR16));
-            ASSERT (Value != NULL);
+            ASSERT (NameValue != NULL);
             //
             // Convert Buffer to Hex String
             //
             TempBuffer = (UINT8 *) &Value->Value + OpCode->ValueWidth - 1;
             StrPtr = NameValue;
-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to