From a255618e22152ca2e5fd361a3d0762e9db20dd80 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Wed, 5 Jun 2019 22:02:50 -1000 Subject: Update vim to 8.1.1471 --- data/vim/patches/8.1.1463 | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 data/vim/patches/8.1.1463 (limited to 'data/vim/patches/8.1.1463') diff --git a/data/vim/patches/8.1.1463 b/data/vim/patches/8.1.1463 new file mode 100644 index 000000000..c28cc32b8 --- /dev/null +++ b/data/vim/patches/8.1.1463 @@ -0,0 +1,59 @@ +To: vim_dev@googlegroups.com +Subject: Patch 8.1.1463 +Fcc: outbox +From: Bram Moolenaar +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 /// -- cgit v1.2.3