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:
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user