0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Fixes for coverity warnings.

This commit is contained in:
Bram Moolenaar
2010-07-31 16:44:19 +02:00
parent a26559b553
commit a9d52e3b79
11 changed files with 25 additions and 22 deletions

View File

@@ -6358,7 +6358,7 @@ nv_csearch(cap)
nv_brackets(cap)
cmdarg_T *cap;
{
pos_T new_pos;
pos_T new_pos = INIT_POS_T(0, 0, 0);
pos_T prev_pos;
pos_T *pos = NULL; /* init for GCC */
pos_T old_pos; /* cursor position before command */
@@ -6436,7 +6436,6 @@ nv_brackets(cap)
{
if (cap->nchar == '*')
cap->nchar = '/';
new_pos.lnum = 0;
prev_pos.lnum = 0;
if (cap->nchar == 'm' || cap->nchar == 'M')
{