mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
spatch to drop check after alloc/lalloc/xmalloc #690
This commit is contained in:
parent
f870982634
commit
ec72b7adc7
@ -2979,10 +2979,6 @@ static char_u *cat_prefix_varname(int prefix, char_u *name)
|
||||
free(varnamebuf);
|
||||
len += 10; /* some additional space */
|
||||
varnamebuf = xmalloc(len);
|
||||
if (varnamebuf == NULL) {
|
||||
varnamebuflen = 0;
|
||||
return NULL;
|
||||
}
|
||||
varnamebuflen = len;
|
||||
}
|
||||
*varnamebuf = prefix;
|
||||
|
Loading…
Reference in New Issue
Block a user