diff options
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/term.c b/src/term.c index dbba313f02..0cf3da9740 100644 --- a/src/term.c +++ b/src/term.c @@ -3026,10 +3026,6 @@ void add_termcode(char_u *name, char_u *string, int flags) tc_max_len += 20; new_tc = (struct termcode *)alloc( (unsigned)(tc_max_len * sizeof(struct termcode))); - if (new_tc == NULL) { - tc_max_len -= 20; - return; - } for (i = 0; i < tc_len; ++i) new_tc[i] = termcodes[i]; vim_free(termcodes); @@ -4206,10 +4202,6 @@ replace_termcodes ( * replaced by 6 bytes (shifted special key), plus a NUL at the end. */ result = alloc((unsigned)STRLEN(from) * 6 + 1); - if (result == NULL) { /* out of memory */ - *bufp = NULL; - return from; - } src = from; @@ -4416,8 +4408,6 @@ void show_termcodes(void) if (tc_len == 0) /* no terminal codes (must be GUI) */ return; items = (int *)alloc((unsigned)(sizeof(int) * tc_len)); - if (items == NULL) - return; /* Highlight title */ MSG_PUTS_TITLE(_("\n--- Terminal keys ---")); |