diff --git a/.pick_status.json b/.pick_status.json index 58e64891831..39acf3a1e5d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -514,7 +514,7 @@ "description": "vulkan/screenshot-layer: initialize info to NULL", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "eda55c7c2f695492e8ebdd26725e5be5ee66eb1c", "notes": null diff --git a/src/vulkan/screenshot-layer/screenshot.cpp b/src/vulkan/screenshot-layer/screenshot.cpp index cc25690c165..f257b83f4db 100644 --- a/src/vulkan/screenshot-layer/screenshot.cpp +++ b/src/vulkan/screenshot-layer/screenshot.cpp @@ -790,7 +790,7 @@ void *writePNG(void *data) { char *tmpFilename = (char *)malloc(length + 4); // Allow for ".tmp" VkResult res; png_byte *row_pointer; - png_infop info; + png_infop info = NULL; png_struct* png; uint64_t rowPitch = threadData->srLayout.rowPitch; uint64_t start_time, end_time;