mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3943: compiler warning from gcc for uninitialized variable
Problem: Compiler warning from gcc for uninitialized variable. Solution: Initialize variable. (closes #9429)
This commit is contained in:
@@ -1636,7 +1636,7 @@ diff_read(
|
|||||||
long off;
|
long off;
|
||||||
int i;
|
int i;
|
||||||
int notset = TRUE; // block "*dp" not set yet
|
int notset = TRUE; // block "*dp" not set yet
|
||||||
diffhunk_T *hunk;
|
diffhunk_T *hunk = NULL; // init to avoid gcc warning
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
DIFF_ED,
|
DIFF_ED,
|
||||||
@@ -1662,11 +1662,8 @@ diff_read(
|
|||||||
{
|
{
|
||||||
hunk = ALLOC_ONE(diffhunk_T);
|
hunk = ALLOC_ONE(diffhunk_T);
|
||||||
if (hunk == NULL)
|
if (hunk == NULL)
|
||||||
{
|
|
||||||
emsg(_("E98: Cannot read diff output"));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
@@ -749,6 +749,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 */
|
||||||
|
/**/
|
||||||
|
3943,
|
||||||
/**/
|
/**/
|
||||||
3942,
|
3942,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user