aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c6
1 files changed, 2 insertions, 4 deletions
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);