summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2017-03-05 23:04:51 +0200
committerBas Nieuwenhuizen <[email protected]>2017-03-06 00:10:42 +0100
commit666fe622e1b4c04e251cef6136500f3e71a17483 (patch)
treec1cdc6fa8958c9cbff44f2a99f847a8831089d52 /src/amd/vulkan
parent5458b02305720b6f2acdf14429ae815a2feee3c3 (diff)
radv: don't use uninitialized value on failure
Mainly to avoid a warning. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_descriptor_set.c2
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 ca5b28090b9..7dade3eeed3 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);