From: zeertzjq Date: Thu, 3 Apr 2025 19:21:15 +0000 (+0200) Subject: patch 9.1.1273: Coverity warns about using uninitialized value X-Git-Tag: v9.1.1273^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f16d8b2dda077d8252c3f7d19e6a5bc15d1d51c1;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/buffer.c b/src/buffer.c index 8277b726c2..90ca596783 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4037,6 +4037,8 @@ maketitle(void) vim_strncpy(buf, p, SPACE_FOR_FNAME); vim_free(p); } + else + STRCPY(buf, ""); } #ifdef FEAT_TERMINAL diff --git a/src/version.c b/src/version.c index 28c0248665..e00e0077c0 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1273, /**/ 1272, /**/