From 0f9c737e66aee3b823f6607beaae2d107c01052c Mon Sep 17 00:00:00 2001 From: Aaron Loucks Date: Sun, 26 May 2019 18:21:24 -0400 Subject: [PATCH] Use ptr::null_mut for void pointer initialization --- ash/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ash/src/device.rs b/ash/src/device.rs index 27cfa74..07214a7 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -1510,7 +1510,7 @@ pub trait DeviceV1_0 { size: vk::DeviceSize, flags: vk::MemoryMapFlags, ) -> VkResult<*mut c_void> { - let mut data: *mut c_void = mem::zeroed(); + let mut data: *mut c_void = ptr::null_mut(); let err_code = self.fp_v1_0() .map_memory(self.handle(), memory, offset, size, flags, &mut data);