mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.1386: unessesary type casts for lalloc()
Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
This commit is contained in:
@@ -890,7 +890,7 @@ mch_libcall(
|
||||
else if (retval_str != NULL
|
||||
&& (len = check_str_len(retval_str)) > 0)
|
||||
{
|
||||
*string_result = lalloc((long_u)len, TRUE);
|
||||
*string_result = alloc(len);
|
||||
if (*string_result != NULL)
|
||||
mch_memmove(*string_result, retval_str, len);
|
||||
}
|
||||
|
Reference in New Issue
Block a user