Merge pull request #17869 from dundargoc/vim-8.2.3943

vim-patch:8.2.3943: compiler warning from gcc for uninitialized variable
This commit is contained in:
zeertzjq 2022-03-26 22:27:03 +08:00 committed by GitHub
commit 111dd6c322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1536,7 +1536,7 @@ static void diff_read(int idx_orig, int idx_new, diffio_T *dio)
long off;
int i;
int notset = true; // block "*dp" not set yet
diffhunk_T *hunk;
diffhunk_T *hunk = NULL; // init to avoid gcc warning
enum {
DIFF_ED,
DIFF_UNIFIED,