spatch to drop check after alloc/lalloc/xmalloc #690

This commit is contained in:
Nikolay Orlyuk 2014-05-05 08:59:04 +03:00 committed by Justin M. Keyes
parent f870982634
commit ec72b7adc7

View File

@ -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;