fix: fix ASAN errors on clang 17 (#25469)

This commit is contained in:
dundargoc
2023-10-03 00:19:30 +02:00
committed by GitHub
parent eb1f0e8fcc
commit fd791db0ec
6 changed files with 8 additions and 7 deletions

View File

@@ -1226,7 +1226,7 @@ fail:
///
/// @return [allocated] NULL when calling function fails, allocated string
/// otherwise.
char *call_func_retstr(const char *const func, int argc, typval_T *argv)
void *call_func_retstr(const char *const func, int argc, typval_T *argv)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_MALLOC
{
typval_T rettv;