Patch 8.2.2350

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 14, 2021, 3:41:02 PM1/14/21
to vim...@googlegroups.com

Patch 8.2.2350
Problem: Using "void" for no reason.
Solution: Use "char *".
Files: src/ex_docmd.c


*** ../vim-8.2.2349/src/ex_docmd.c 2021-01-09 12:09:18.399881402 +0100
--- src/ex_docmd.c 2021-01-14 21:29:21.734140910 +0100
***************
*** 1268,1274 ****
*/
if (did_throw)
{
! void *p = NULL;
msglist_T *messages = NULL, *next;

/*
--- 1268,1274 ----
*/
if (did_throw)
{
! char *p = NULL;
msglist_T *messages = NULL, *next;

/*
***************
*** 1283,1289 ****
vim_snprintf((char *)IObuff, IOSIZE,
_("E605: Exception not caught: %s"),
current_exception->value);
! p = vim_strsave(IObuff);
break;
case ET_ERROR:
messages = current_exception->messages;
--- 1283,1289 ----
vim_snprintf((char *)IObuff, IOSIZE,
_("E605: Exception not caught: %s"),
current_exception->value);
! p = (char *)vim_strsave(IObuff);
break;
case ET_ERROR:
messages = current_exception->messages;
*** ../vim-8.2.2349/src/version.c 2021-01-14 20:35:46.254002151 +0100
--- src/version.c 2021-01-14 21:40:00.780623622 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2350,
/**/

--
hundred-and-one symptoms of being an internet addict:
147. You finally give up smoking...because it made the monitor dirty.

/// Bram Moolenaar -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages