mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
Declare garray iterators in the for() scope where possible #819
This commit is contained in:

committed by
Justin M. Keyes

parent
a321480342
commit
f39fd5b4c4
@@ -35,8 +35,7 @@ void ga_clear(garray_T *gap)
|
||||
/// @param gap
|
||||
void ga_clear_strings(garray_T *gap)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < gap->ga_len; ++i) {
|
||||
for (int i = 0; i < gap->ga_len; ++i) {
|
||||
free(((char_u **)(gap->ga_data))[i]);
|
||||
}
|
||||
ga_clear(gap);
|
||||
|
Reference in New Issue
Block a user