mirror of
https://github.com/vim/vim.git
synced 2025-10-21 08:24:06 -04:00
patch 9.1.1724: Compiler warning about ununitialized variable in ex_docmd.
Problem: Compiler warning about ununitialized variable in ex_docmd. Solution: Initialize result variable (mityu) Silence uninitialized variable warning produced by clang 21.1.0 closes: #18182 Signed-off-by: mityu <mityu.mail@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
710095cab8
commit
5f5a1c5876
@@ -9773,7 +9773,7 @@ eval_vars(
|
||||
{
|
||||
int i;
|
||||
char_u *s;
|
||||
char_u *result;
|
||||
char_u *result = (char_u *)"";
|
||||
char_u *resultbuf = NULL;
|
||||
size_t resultlen;
|
||||
buf_T *buf;
|
||||
@@ -10064,10 +10064,6 @@ eval_vars(
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
result = (char_u *)""; // avoid gcc warning
|
||||
break;
|
||||
}
|
||||
|
||||
resultlen = STRLEN(result); // length of new string
|
||||
|
@@ -724,6 +724,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1724,
|
||||
/**/
|
||||
1723,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user