From: Eric Engestrom Date: Mon, 8 Jul 2019 16:12:39 +0000 (+0100) Subject: radv: drop unnecessary memset() before snprintf() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29e8f15bdc69449a1116817ef3febefeab9eb53b;p=mesa.git radv: drop unnecessary memset() before snprintf() snprintf() always terminates the string. Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- 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 ")");