From ea5396f31a8db7344177b4dd5335ebd617861d58 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Wed, 13 Aug 2014 06:31:08 +0000 Subject: Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15795 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/NvVarsFileLib/FsAccess.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OvmfPkg/Library/NvVarsFileLib') diff --git a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c index 937e4abe19..66b5566c75 100644 --- a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c +++ b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c @@ -1,7 +1,7 @@ /** @file File System Access for NvVarsFileLib - Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2004 - 2014, 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 @@ -432,6 +432,8 @@ SaveNvVarsToFs ( VOID *VariableData; EFI_HANDLE SerializedVariables; + SerializedVariables = NULL; + Status = SerializeVariablesNewInstance (&SerializedVariables); if (EFI_ERROR (Status)) { return Status; -- cgit v1.2.3