summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Variable
diff options
context:
space:
mode:
authorZenith432 <zenith432@users.sourceforge.net>2016-05-16 23:49:12 +0800
committerLiming Gao <liming.gao@intel.com>2016-05-18 09:50:42 +0800
commit415700ec3eb5f6414e6278bbf338d142052b3138 (patch)
tree5026e770639e3215ecc1534f96cb546fc38a1132 /MdeModulePkg/Universal/Variable
parent7266e2f69b8bfa47c1c7203ad51dabf6c4cb78c9 (diff)
downloadedk2-platforms-415700ec3eb5f6414e6278bbf338d142052b3138.tar.xz
MdeModulePkg: Terminate two unterminated VA_COPYs in CheckRemainingSpaceForConsistencyInternal()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zenith432 <zenith432@users.sourceforge.net> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/Variable')
-rw-r--r--MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
index 17475be323..8a9f4482b5 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
@@ -1771,6 +1771,7 @@ CheckRemainingSpaceForConsistencyInternal (
TotalNeededSize += VariableEntry->VariableSize;
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
}
+ VA_END (Args);
if (RemainingVariableStorageSize >= TotalNeededSize) {
//
@@ -1823,6 +1824,7 @@ CheckRemainingSpaceForConsistencyInternal (
RemainingVariableStorageSize -= VariableEntry->VariableSize;
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
}
+ VA_END (Args);
return TRUE;
}