oops, accessing random memory is bad

SVN revision: 11834
This commit is contained in:
tsauerbeck 2004-10-11 19:26:08 +00:00 committed by tsauerbeck
parent 587d771f32
commit c52cd76b91
1 changed files with 1 additions and 1 deletions

View File

@ -2011,7 +2011,7 @@ embryo_parameter_cell_array_push(Embryo_Program *ep, Embryo_Cell *cells, int num
Embryo_Param *pr;
Embryo_Cell *cell_array;
pr->cell_array = malloc(num * sizeof(Embryo_Cell));
cell_array = malloc(num * sizeof(Embryo_Cell));
if ((!cells) || (num <= 0))
return embryo_parameter_cell_push(ep, 0);
ep->params_size++;