Use ptr::null_mut for void pointer initialization
This commit is contained in:
parent
bd69ab969c
commit
0f9c737e66
|
@ -1510,7 +1510,7 @@ pub trait DeviceV1_0 {
|
||||||
size: vk::DeviceSize,
|
size: vk::DeviceSize,
|
||||||
flags: vk::MemoryMapFlags,
|
flags: vk::MemoryMapFlags,
|
||||||
) -> VkResult<*mut c_void> {
|
) -> VkResult<*mut c_void> {
|
||||||
let mut data: *mut c_void = mem::zeroed();
|
let mut data: *mut c_void = ptr::null_mut();
|
||||||
let err_code =
|
let err_code =
|
||||||
self.fp_v1_0()
|
self.fp_v1_0()
|
||||||
.map_memory(self.handle(), memory, offset, size, flags, &mut data);
|
.map_memory(self.handle(), memory, offset, size, flags, &mut data);
|
||||||
|
|
Loading…
Reference in a new issue