clang/'Logic error': zero-init struct

This commit is contained in:
Jan Edmund Lazo
2020-01-16 00:10:16 -05:00
parent d811fab0ad
commit 1042338c00
2 changed files with 3 additions and 3 deletions

View File

@@ -1372,7 +1372,7 @@ int op_delete(oparg_T *oap)
linenr_T lnum; linenr_T lnum;
char_u *ptr; char_u *ptr;
char_u *newp, *oldp; char_u *newp, *oldp;
struct block_def bd; struct block_def bd = { 0 };
linenr_T old_lcount = curbuf->b_ml.ml_line_count; linenr_T old_lcount = curbuf->b_ml.ml_line_count;
if (curbuf->b_ml.ml_flags & ML_EMPTY) { // nothing to do if (curbuf->b_ml.ml_flags & ML_EMPTY) { // nothing to do

View File

@@ -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) static void spell_soundfold_wsal(slang_T *slang, char_u *inword, char_u *res)
{ {
salitem_T *smp = (salitem_T *)slang->sl_sal.ga_data; salitem_T *smp = (salitem_T *)slang->sl_sal.ga_data;
int word[MAXWLEN]; int word[MAXWLEN] = { 0 };
int wres[MAXWLEN]; int wres[MAXWLEN] = { 0 };
int l; int l;
int *ws; int *ws;
int *pf; int *pf;