summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0699
blob: fd483b7ed0bbb1ccc912cd62aab5260ab80136db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0699
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0699
Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Add a dummy init.
Files:	    src/edit.c


*** ../vim-8.1.0698/src/edit.c	2019-01-06 15:29:52.540852980 +0100
--- src/edit.c	2019-01-06 17:42:36.649397395 +0100
***************
*** 7970,7976 ****
      if (cc > 0)
      {
  #ifdef FEAT_TEXT_PROP
! 	size_t	len_before;
  
  	if (curbuf->b_has_textprop)
  	{
--- 7970,7976 ----
      if (cc > 0)
      {
  #ifdef FEAT_TEXT_PROP
! 	size_t	len_before = 0;  // init to shut up GCC
  
  	if (curbuf->b_has_textprop)
  	{
*** ../vim-8.1.0698/src/version.c	2019-01-06 17:25:23.876557968 +0100
--- src/version.c	2019-01-06 17:44:27.488666435 +0100
***************
*** 801,802 ****
--- 801,804 ----
  {   /* Add new patch number below this line */
+ /**/
+     699,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
116. You are living with your boyfriend who networks your respective
     computers so you can sit in separate rooms and email each other

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///