1
0
forked from aniani/vim

patch 9.1.1273: Coverity warns about using uninitialized value

Problem:  Coverity warns about using uninitialized value
          (after 9.1.1270).
Solution: Put an empty string in "buf" when allocation fails (zeertzjq).

closes: #17040

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-04-03 21:21:15 +02:00
committed by Christian Brabandt
parent 3e50a28a03
commit f16d8b2dda
2 changed files with 4 additions and 0 deletions

View File

@@ -4037,6 +4037,8 @@ maketitle(void)
vim_strncpy(buf, p, SPACE_FOR_FNAME);
vim_free(p);
}
else
STRCPY(buf, "");
}
#ifdef FEAT_TERMINAL

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1273,
/**/
1272,
/**/