aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-16 00:10:16 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-17 19:06:50 -0500
commit1042338c0062ea091ea1e52b161fd25adcdc927f (patch)
tree570bba5193ea60c483f5324b0c153ea1561c2e40 /src
parentd811fab0ad3e679acc27a4ff8f399fcf04726aa9 (diff)
downloadrneovim-1042338c0062ea091ea1e52b161fd25adcdc927f.tar.gz
rneovim-1042338c0062ea091ea1e52b161fd25adcdc927f.tar.bz2
rneovim-1042338c0062ea091ea1e52b161fd25adcdc927f.zip
clang/'Logic error': zero-init struct
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ops.c2
-rw-r--r--src/nvim/spell.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 5da81dbff6..da2b81fd0a 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1372,7 +1372,7 @@ int op_delete(oparg_T *oap)
linenr_T lnum;
char_u *ptr;
char_u *newp, *oldp;
- struct block_def bd;
+ struct block_def bd = { 0 };
linenr_T old_lcount = curbuf->b_ml.ml_line_count;
if (curbuf->b_ml.ml_flags & ML_EMPTY) { // nothing to do
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index 5feb7efda9..96ae75718d 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -6145,8 +6145,8 @@ static void spell_soundfold_sal(slang_T *slang, char_u *inword, char_u *res)
static void spell_soundfold_wsal(slang_T *slang, char_u *inword, char_u *res)
{
salitem_T *smp = (salitem_T *)slang->sl_sal.ga_data;
- int word[MAXWLEN];
- int wres[MAXWLEN];
+ int word[MAXWLEN] = { 0 };
+ int wres[MAXWLEN] = { 0 };
int l;
int *ws;
int *pf;