diff options
author | Eric Engestrom <[email protected]> | 2019-07-08 17:12:39 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-21 10:38:17 +0100 |
commit | 29e8f15bdc69449a1116817ef3febefeab9eb53b (patch) | |
tree | 470bef861d27b120b56f97f9e420939e47cafd2a /src/amd/vulkan/radv_device.c | |
parent | 451f030c068ccfa87aaab624d8e392875fd46c08 (diff) |
radv: drop unnecessary memset() before snprintf()
snprintf() always terminates the string.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 ")"); |