mirror of
https://github.com/vim/vim.git
synced 2025-10-24 08:54:47 -04:00
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:
committed by
Christian Brabandt
parent
3e50a28a03
commit
f16d8b2dda
@@ -4037,6 +4037,8 @@ maketitle(void)
|
||||
vim_strncpy(buf, p, SPACE_FOR_FNAME);
|
||||
vim_free(p);
|
||||
}
|
||||
else
|
||||
STRCPY(buf, "");
|
||||
}
|
||||
|
||||
#ifdef FEAT_TERMINAL
|
||||
|
||||
Reference in New Issue
Block a user