diff src/ops.c @ 6923:9a13e3910e3d v7.4.780

patch 7.4.780 Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static.
author Bram Moolenaar <bram@vim.org>
date Sun, 12 Jul 2015 16:21:23 +0200
parents 1f78058351a6
children 58d9f967ae1a
line wrap: on
line diff
--- a/src/ops.c
+++ b/src/ops.c
@@ -5403,7 +5403,7 @@ do_addsub(command, Prenum1, g_cmd)
     int		i;
     int		lnum = curwin->w_cursor.lnum;
     int		lnume = curwin->w_cursor.lnum;
-    int		startcol;
+    int		startcol = 0;
     int		did_change = FALSE;
 
     dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL);	/* "heX" */