Remove fix for broken realloc.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4043 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-19 19:20:24 +00:00
parent c4b062f219
commit c8aedecc75

View File

@@ -172,10 +172,7 @@ find_cells(char *file, char ***cells, int *index)
if(strcmp((*cells)[i], cell) == 0)
break;
if(i == *index){
if(*cells == NULL)
*cells = malloc((*index + 1) * sizeof(**cells));
else
*cells = realloc(*cells, (*index + 1) * sizeof(**cells));
*cells = realloc(*cells, (*index + 1) * sizeof(**cells));
(*cells)[(*index)++] = strdup(cell);
}
}