mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
Make dc_array_new and dc_array_new_typed safe
Just like Box::into_raw, these functions are safe, even though the caller is responsible for the allocated structure.
This commit is contained in:
@@ -247,7 +247,7 @@ pub fn dc_get_locations(
|
||||
Ok(loc)
|
||||
},
|
||||
|locations| {
|
||||
let ret = unsafe { dc_array_new_typed(1, 500) };
|
||||
let ret = dc_array_new_typed(1, 500);
|
||||
|
||||
for location in locations {
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user