aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-12-13 12:39:44 -0700
committerTobin Ehlis <tobine@google.com>2016-12-13 16:12:40 -0700
commit52ad352e3b3ee86123bdecf17d09b83714db7741 (patch)
treeda300b06456d8b61a638db25ba1d0a951e01bbfd /layers/core_validation.cpp
parentf7cac3fcb02eded1dcca59ccd33b615855c6f022 (diff)
downloadusermoji-52ad352e3b3ee86123bdecf17d09b83714db7741.tar.xz
layers:Fix uninitialized variable
Zero-init the map_range variable before checking for aliasing of a mapped memory region.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index d4cd6147..6992041a 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5604,7 +5604,7 @@ static bool rangesIntersect(layer_data const *dev_data, MEMORY_RANGE const *rang
// TODO : For ranges where there is no alias, we may want to create new buffer ranges that are valid
static void SetMemRangesValid(layer_data const *dev_data, DEVICE_MEM_INFO *mem_info, VkDeviceSize offset, VkDeviceSize end) {
bool tmp_bool = false;
- MEMORY_RANGE map_range;
+ MEMORY_RANGE map_range = {};
map_range.linear = true;
map_range.start = offset;
map_range.end = end;