Add get_marker method to dc_array_t

This commit is contained in:
Alexander Krotov
2020-06-29 06:21:52 +03:00
committed by link2xt
parent 615a76f35e
commit 56518420bc
2 changed files with 12 additions and 1 deletions

View File

@@ -2068,7 +2068,7 @@ pub unsafe extern "C" fn dc_array_get_marker(
return std::ptr::null_mut(); // NULL explicitly defined as "no markers"
}
if let Some(s) = &(*array).get_location(index).marker {
if let Some(s) = (*array).get_marker(index) {
s.strdup()
} else {
std::ptr::null_mut()