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
54
55
56
57
58
59
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1463
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.1463
Problem: Gcc warns for uninitialized variable.
Solution: Put usage inside "if". (Ken Takata)
Files: src/textprop.c
*** ../vim-8.1.1462/src/textprop.c 2019-05-28 23:08:12.080648632 +0200
--- src/textprop.c 2019-06-04 19:14:23.975238456 +0200
***************
*** 1240,1248 ****
if (line == NULL)
return;
mch_memmove(line, newp, len);
! l = oldproplen * sizeof(textprop_T);
! mch_memmove(line + len, props, l);
! len += l;
for (i = 0; i < count - 1; ++i)
if (prop_lines[i] != NULL)
--- 1240,1251 ----
if (line == NULL)
return;
mch_memmove(line, newp, len);
! if (oldproplen > 0)
! {
! l = oldproplen * sizeof(textprop_T);
! mch_memmove(line + len, props, l);
! len += l;
! }
for (i = 0; i < count - 1; ++i)
if (prop_lines[i] != NULL)
*** ../vim-8.1.1462/src/version.c 2019-06-04 08:22:49.889739641 +0200
--- src/version.c 2019-06-04 19:15:36.994561276 +0200
***************
*** 769,770 ****
--- 769,772 ----
{ /* Add new patch number below this line */
+ /**/
+ 1463,
/**/
--
From "know your smileys":
%-) After staring at screen for 15 hours
/// 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 ///
|