From 29e8f15bdc69449a1116817ef3febefeab9eb53b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 8 Jul 2019 17:12:39 +0100 Subject: [PATCH] radv: drop unnecessary memset() before snprintf() snprintf() always terminates the string. Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 8dd24cb8192..af7fcb6fcff 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1343,7 +1343,6 @@ void radv_GetPhysicalDeviceProperties2( memset(driver_props->driverName, 0, VK_MAX_DRIVER_NAME_SIZE_KHR); strcpy(driver_props->driverName, "radv"); - memset(driver_props->driverInfo, 0, VK_MAX_DRIVER_INFO_SIZE_KHR); snprintf(driver_props->driverInfo, VK_MAX_DRIVER_INFO_SIZE_KHR, "Mesa " PACKAGE_VERSION MESA_GIT_SHA1 " (LLVM " MESA_LLVM_VERSION_STRING ")"); -- 2.30.2