From 415700ec3eb5f6414e6278bbf338d142052b3138 Mon Sep 17 00:00:00 2001 From: Zenith432 Date: Mon, 16 May 2016 23:49:12 +0800 Subject: MdeModulePkg: Terminate two unterminated VA_COPYs in CheckRemainingSpaceForConsistencyInternal() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zenith432 Reviewed-by: Liming Gao --- MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3