0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1153: build error with some compilers

Problem:    Build error with some compilers.
Solution:   Clear pointer the right way.
This commit is contained in:
Bram Moolenaar
2023-01-06 18:59:08 +00:00
parent 94674f2223
commit 7d4d87ba89
2 changed files with 3 additions and 1 deletions

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1153,
/**/ /**/
1152, 1152,
/**/ /**/

View File

@@ -606,7 +606,7 @@ early_ret:
goto cleanup; goto cleanup;
for (int i = 0; i < ga_impl.ga_len; ++i) for (int i = 0; i < ga_impl.ga_len; ++i)
cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i]; cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i];
CLEAR_POINTER(ga_impl.ga_data); VIM_CLEAR(ga_impl.ga_data);
ga_impl.ga_len = 0; ga_impl.ga_len = 0;
} }