projects
/
vim
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb5adf1
)
patch 9.0.0378: compiler warning for uninitialized variable
v9.0.0378
author
Bram Moolenaar
<Bram@vim.org>
Sun, 4 Sep 2022 12:45:15 +0000
(13:45 +0100)
committer
Bram Moolenaar
<Bram@vim.org>
Sun, 4 Sep 2022 12:45:15 +0000
(13:45 +0100)
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize it.
src/spellfile.c
patch
|
blob
|
history
src/version.c
patch
|
blob
|
history
diff --git
a/src/spellfile.c
b/src/spellfile.c
index 69b27ae91964cd35dbcc1902f5e6d730cb25a6b5..d650f870eb304bfb9729a3ed0138a6ea52744355 100644
(file)
--- a/
src/spellfile.c
+++ b/
src/spellfile.c
@@
-841,7
+841,7
@@
read_cnt_string(FILE *fd, int cnt_bytes, int *cntp)
read_region_section(FILE *fd, slang_T *lp, int len)
{
int i;
- int c;
+ int c
= 0
;
if (len > MAXREGIONS * 2)
return SP_FORMERROR;
diff --git
a/src/version.c
b/src/version.c
index 1f6ba8caa1f2e79cb2e562ef91b815ac81e65a9b..e53c1c03685648ae10970ae6a17549ee814b79c4 100644
(file)
--- a/
src/version.c
+++ b/
src/version.c
@@
-703,6
+703,8
@@
static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 378,
/**/
377,
/**/