mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
spatch to drop check after alloc/lalloc/xmalloc #690
This commit is contained in:

committed by
Justin M. Keyes

parent
f870982634
commit
ec72b7adc7
@@ -2979,10 +2979,6 @@ static char_u *cat_prefix_varname(int prefix, char_u *name)
|
|||||||
free(varnamebuf);
|
free(varnamebuf);
|
||||||
len += 10; /* some additional space */
|
len += 10; /* some additional space */
|
||||||
varnamebuf = xmalloc(len);
|
varnamebuf = xmalloc(len);
|
||||||
if (varnamebuf == NULL) {
|
|
||||||
varnamebuflen = 0;
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
varnamebuflen = len;
|
varnamebuflen = len;
|
||||||
}
|
}
|
||||||
*varnamebuf = prefix;
|
*varnamebuf = prefix;
|
||||||
|
Reference in New Issue
Block a user