patch 9.0.0966: some compilers don't allow a declaration after a label

Problem:    Some compilers don't allow a declaration after a label.
Solution:   Move the declaration to the start of the block. (John Marriott)
This commit is contained in:
Bram Moolenaar
2022-11-28 19:11:02 +00:00
parent e76062c078
commit f86490ed4f
2 changed files with 4 additions and 2 deletions

View File

@ -2383,6 +2383,7 @@ screenalloc(int doclear)
static int entered = FALSE; // avoid recursiveness
static int done_outofmem_msg = FALSE; // did outofmem message
int retry_count = 0;
int found_null;
retry:
/*
@ -2509,8 +2510,7 @@ retry:
#endif
give_up:
int found_null = FALSE;
found_null = FALSE;
for (int i = 0; i < p_mco; ++i)
if (new_ScreenLinesC[i] == NULL)
{