Patch 9.0.1284
Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution: Add variable initializations.
Files: src/option.c
*** ../vim-9.0.1283/src/option.c 2023-02-05 16:02:30.980790251 +0000
--- src/option.c 2023-02-05 17:03:46.822169558 +0000
***************
*** 2096,2102 ****
char_u key_name[2];
int nextchar; // next non-white char after option name
int afterchar; // character just after option name
- int cp_val;
char *errmsg = NULL;
int key;
int len;
--- 2096,2101 ----
***************
*** 2167,2172 ****
--- 2166,2172 ----
else
{
flags = P_STRING;
+ varp = NULL;
if (key < 0)
{
key_name[0] = KEY2TERMCAP0(key);
***************
*** 2183,2192 ****
if (validate_opt_idx(opt_idx, opt_flags, flags, &errmsg) == FAIL)
goto skip;
if (vim_strchr((char_u *)"?=:!&<", nextchar) != NULL)
{
arg += len;
- cp_val = p_cp;
if (nextchar == '&' && arg[1] == 'v' && arg[2] == 'i')
{
if (arg[3] == 'm') // "opt&vim": set to Vim default
--- 2183,2192 ----
if (validate_opt_idx(opt_idx, opt_flags, flags, &errmsg) == FAIL)
goto skip;
+ int cp_val = p_cp;
if (vim_strchr((char_u *)"?=:!&<", nextchar) != NULL)
{
arg += len;
if (nextchar == '&' && arg[1] == 'v' && arg[2] == 'i')
{
if (arg[3] == 'm') // "opt&vim": set to Vim default
*** ../vim-9.0.1283/src/version.c 2023-02-05 16:02:30.980790251 +0000
--- src/version.c 2023-02-05 17:01:43.054261972 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1284,
/**/
--
>From "know your smileys":
:-& Eating spaghetti
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20230205170521.71F381C07B3%40moolenaar.net.