diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-26 22:27:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 22:27:03 +0800 |
commit | 111dd6c3228c594562d151d6ebc929ff7c889324 (patch) | |
tree | d621c6c3c57bb445e61c83ce89b443b90922ee1a | |
parent | 66fff788f2824ed804f262a4d67da6a807cdc053 (diff) | |
parent | 82304038a239bb833e88c9c342aae19ab5dda489 (diff) | |
download | rneovim-111dd6c3228c594562d151d6ebc929ff7c889324.tar.gz rneovim-111dd6c3228c594562d151d6ebc929ff7c889324.tar.bz2 rneovim-111dd6c3228c594562d151d6ebc929ff7c889324.zip |
Merge pull request #17869 from dundargoc/vim-8.2.3943
vim-patch:8.2.3943: compiler warning from gcc for uninitialized variable
-rw-r--r-- | src/nvim/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 1b8a9f41e9..a6bbe40999 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -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, |