Removed unneeded checks around Zend allocation macros.

This commit is contained in:
Ilia Alshanetsky 2004-06-20 21:40:43 +00:00
parent d3de81fb00
commit a99e4b5969

View File

@ -40,13 +40,8 @@ static int reference_levdist(const char *s1, int l1,
if((l1>LEVENSHTEIN_MAX_LENTH)||(l2>LEVENSHTEIN_MAX_LENTH))
return -1;
if(!(p1=safe_emalloc((l2+1), sizeof(int), 0))) {
return -2;
}
if(!(p2=safe_emalloc((l2+1), sizeof(int), 0))) {
free(p1);
return -2;
}
p1 = safe_emalloc((l2+1), sizeof(int), 0);
p2 = safe_emalloc((l2+1), sizeof(int), 0);
for(i2=0;i2<=l2;i2++)
p1[i2] = i2*cost_ins;