From b4545740fdc1e694a1e5b45f95bdb7cdf7d292a0 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Fri, 4 Apr 2014 15:35:33 -0300 Subject: Remove OOM error handling code after calls to transstr() transstr() doesn't return NULL anymore. --- src/screen.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index b6e3c46002..68a1f05e9c 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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); -- cgit