Remove OOM error handling code after calls to transstr()

transstr() doesn't return NULL anymore.
This commit is contained in:
Felipe Oliveira Carvalho
2014-04-04 15:35:33 -03:00
committed by Thiago de Arruda
parent b8bda77e39
commit b4545740fd
3 changed files with 37 additions and 41 deletions

View File

@@ -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);