Commit bd85bf54 authored by Kubacki, Michael A's avatar Kubacki, Michael A Committed by mergify[bot]
Browse files

MdeModulePkg/Variable: Initialize local variable "RtPtrTrack"


Fixes a new build warning in VS2012 introduced in f8ff4cca


This patch initializes the local variable "RtPtrTrack" in
FindVariableInRuntimeCache ().

This ensures the pointers in the structure are initialized
in the case no variable stores exist in the list of variable

Cc: Liming Gao <>
Cc: Michael D Kinney <>
Cc: Jian J Wang <>
Cc: Hao A Wu <>
Signed-off-by: default avatarMichael Kubacki <>
Reviewed-by: default avatarLiming Gao <>
Reviewed-by: default avatarJian J Wang <>
parent bbb5b0d6
......@@ -590,6 +590,8 @@ FindVariableInRuntimeCache (
ZeroMem (&RtPtrTrack, sizeof (RtPtrTrack));
// The UEFI specification restricts Runtime Services callers from invoking the same or certain other Runtime Service
// functions prior to completion and return from a previous Runtime Service call. These restrictions prevent
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment