diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-04-04 15:35:33 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-11 12:57:59 -0300 |
commit | b4545740fdc1e694a1e5b45f95bdb7cdf7d292a0 (patch) | |
tree | c1b0065841d523af48ebfbdcc1ca866f13d438e2 /src/screen.c | |
parent | b8bda77e39a8c9a64348f28993425c4b801458b6 (diff) | |
download | rneovim-b4545740fdc1e694a1e5b45f95bdb7cdf7d292a0.tar.gz rneovim-b4545740fdc1e694a1e5b45f95bdb7cdf7d292a0.tar.bz2 rneovim-b4545740fdc1e694a1e5b45f95bdb7cdf7d292a0.zip |
Remove OOM error handling code after calls to transstr()
transstr() doesn't return NULL anymore.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 6 |
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); |