mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
Remove OOM error handling code after calls to transstr()
transstr() doesn't return NULL anymore.
This commit is contained in:

committed by
Thiago de Arruda

parent
b8bda77e39
commit
b4545740fd
@@ -5163,10 +5163,8 @@ win_redr_custom (
|
||||
|
||||
/* Make all characters printable. */
|
||||
p = transstr(buf);
|
||||
if (p != NULL) {
|
||||
vim_strncpy(buf, p, sizeof(buf) - 1);
|
||||
vim_free(p);
|
||||
}
|
||||
vim_strncpy(buf, p, sizeof(buf) - 1);
|
||||
vim_free(p);
|
||||
|
||||
/* fill up with "fillchar" */
|
||||
len = (int)STRLEN(buf);
|
||||
|
Reference in New Issue
Block a user