mesa/src/vulkan
Vinson Lee 08ab11f1c8 vulkan/screenshot-layer: initialize info to NULL
Initialize 'info' to NULL to avoid use of potentially uninitialized
value at the cleanup label when an earlier error causes a goto before
png_create_info_struct() is reached.

screenshot.cpp:808:9: warning: variable 'info' is used uninitialized whenever 'if'
condition is true [-Wsometimes-uninitialized]
screenshot.cpp:814:9: warning: variable 'info' is used uninitialized whenever 'if'
condition is true [-Wsometimes-uninitialized]

Fixes: eda55c7c2f ("vulkan/screenshot-layer: Add Vulkan screenshot layer")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Casey Bowman <casey.g.bowman@intel.com>
(cherry picked from commit 4c46cd8e9d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
2026-05-13 15:39:18 +02:00
..
anti-lag-layer anti-lag: Do not enable layer by default. 2025-09-26 13:29:38 +00:00
device-select-layer wsi/wayland: Use wl_fixes to destroy wl_registry 2026-03-17 12:38:44 +01:00
overlay-layer mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
registry vulkan: update spec to 1.4.335 2025-12-03 14:47:00 +00:00
runtime vulkan: mark RP attachments as invalid when no rendering create info 2026-04-14 15:27:47 +02:00
screenshot-layer vulkan/screenshot-layer: initialize info to NULL 2026-05-13 15:39:18 +02:00
util vulkan: update ALLOWED_ANDROID_VERSION for api level 36 2025-12-17 19:22:47 +00:00
vram-report-limit-layer clang-format: Update the .clang-format files to conformance clang-format json-schema 2025-09-09 07:04:55 +00:00
wsi wsi/display: initialize Xlib display connector property IDs in all cases 2026-04-14 15:27:47 +02:00
meson.build wsi/display: Expose HDR10 colorspace based on EDID 2025-08-05 08:50:05 +00:00
vulkan-android.sym
vulkan-icd-android-symbols.txt
vulkan-icd-symbols.txt
vulkan.sym
vulkan_api.def.in