mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.4051: compiler complains about possibly uninitialized variable
Problem: Compiler complains about possibly uninitialized variable. Solution: Add code to avoid a compiler warning. (John Marriott)
This commit is contained in:
parent
dc4451df61
commit
b06cfcf5a3
@ -274,7 +274,7 @@ get_new_scriptitem(int *error)
|
|||||||
{
|
{
|
||||||
static scid_T last_current_SID = 0;
|
static scid_T last_current_SID = 0;
|
||||||
int sid = ++last_current_SID;
|
int sid = ++last_current_SID;
|
||||||
scriptitem_T *si;
|
scriptitem_T *si = NULL;
|
||||||
|
|
||||||
if (ga_grow(&script_items, (int)(sid - script_items.ga_len)) == FAIL)
|
if (ga_grow(&script_items, (int)(sid - script_items.ga_len)) == FAIL)
|
||||||
{
|
{
|
||||||
@ -305,6 +305,8 @@ get_new_scriptitem(int *error)
|
|||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// "si" can't be NULL, check only to avoid a compiler warning
|
||||||
|
if (si != NULL)
|
||||||
// Used to check script variable index is still valid.
|
// Used to check script variable index is still valid.
|
||||||
si->sn_script_seq = current_sctx.sc_seq;
|
si->sn_script_seq = current_sctx.sc_seq;
|
||||||
|
|
||||||
|
@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
4051,
|
||||||
/**/
|
/**/
|
||||||
4050,
|
4050,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user