From f16d8b2dda077d8252c3f7d19e6a5bc15d1d51c1 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 3 Apr 2025 21:21:15 +0200 Subject: [PATCH] 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 --- src/buffer.c | 2 ++ src/version.c | 2 ++ 2 files changed, 4 insertions(+) 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, /**/ -- 2.47.2