[Mesa-dev] [PATCH 2/4] radv: don't use uninitialized value on failure
Grazvydas Ignotas
notasas at gmail.com
Sun Mar 5 21:04:51 UTC 2017
Mainly to avoid a warning.
Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
---
src/amd/vulkan/radv_descriptor_set.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c
index ca5b280..7dade3e 100644
--- a/src/amd/vulkan/radv_descriptor_set.c
+++ b/src/amd/vulkan/radv_descriptor_set.c
@@ -368,7 +368,7 @@ radv_temp_descriptor_set_create(struct radv_device *device,
VkDescriptorSet *_set)
{
RADV_FROM_HANDLE(radv_descriptor_set_layout, layout, _layout);
- struct radv_descriptor_set *set;
+ struct radv_descriptor_set *set = NULL;
VkResult ret;
ret = radv_descriptor_set_create(device, NULL, cmd_buffer, layout, &set);
--
2.7.4
More information about the mesa-dev
mailing list