aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-07-08 16:12:39 (GMT)
committerEric Engestrom <eric.engestrom@intel.com>2019-07-21 09:38:17 (GMT)
commit29e8f15bdc69449a1116817ef3febefeab9eb53b (patch)
tree470bef861d27b120b56f97f9e420939e47cafd2a
parent451f030c068ccfa87aaab624d8e392875fd46c08 (diff)
downloadexternal_mesa3d-29e8f15bdc69449a1116817ef3febefeab9eb53b.zip
external_mesa3d-29e8f15bdc69449a1116817ef3febefeab9eb53b.tar.gz
external_mesa3d-29e8f15bdc69449a1116817ef3febefeab9eb53b.tar.bz2
radv: drop unnecessary memset() before snprintf()
snprintf() always terminates the string. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-rw-r--r--src/amd/vulkan/radv_device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 8dd24cb..af7fcb6 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 ")");