turnip: Silence compiler warning about uninit pipeline.
authorEric Anholt <eric@anholt.net>
Thu, 19 Sep 2019 18:08:25 +0000 (11:08 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Sep 2019 20:34:28 +0000 (13:34 -0700)
The code was fine as far as I see, but the warning was irritating.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/vulkan/tu_pipeline.c

index b77366d267a46bc976b3b5910c9eeec5e25fc7de..49ce5d2710895024999fcaff0396a0013b4d73a4 100644 (file)
@@ -1882,7 +1882,7 @@ tu_CreateGraphicsPipelines(VkDevice device,
       tu_pipeline_builder_init_graphics(&builder, dev, cache,
                                         &pCreateInfos[i], pAllocator);
 
-      struct tu_pipeline *pipeline;
+      struct tu_pipeline *pipeline = NULL;
       VkResult result = tu_pipeline_builder_build(&builder, &pipeline);
       tu_pipeline_builder_finish(&builder);