diff options
author | Eric Anholt <eric@anholt.net> | 2018-02-10 11:06:45 +0000 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2018-02-12 20:48:47 +0000 |
commit | 1aed66dc1e7391914ba9ae5fd692cc97fc728096 (patch) | |
tree | c48a01ecd712bb7e1cf3e4e668b235376361c73a /src/amd | |
parent | 21670f820812238dbe3fb18ab90493999b7e718e (diff) |
radv: Fix compiler warning about uninitialized 'set'
The compiler doesn't figure out that we only get result == VK_SUCCESS if
set got initialized.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_descriptor_set.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index bbabfa9b275..056a5644dfa 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -518,7 +518,7 @@ VkResult radv_AllocateDescriptorSets( VkResult result = VK_SUCCESS; uint32_t i; - struct radv_descriptor_set *set; + struct radv_descriptor_set *set = NULL; /* allocate a set of buffers for each shader to contain descriptors */ for (i = 0; i < pAllocateInfo->descriptorSetCount; i++) { |