Embryo_Param *pr;
Embryo_Cell *cell_array;
- cell_array = malloc(num * sizeof(Embryo_Cell));
if ((!cells) || (num <= 0))
return embryo_parameter_cell_push(ep, 0);
+ cell_array = malloc(num * sizeof(Embryo_Cell));
ep->params_size++;
if (ep->params_size > ep->params_alloc)
{
if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
STRGET(ep, s1, params[1]);
STRGET(ep, s2, params[2]);
+ if ((!s1) || (!s2)) return -1;
p = strchr(s1, s2[0]);
if (!p) return -1;
return (Embryo_Cell)(p - s1);
if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
STRGET(ep, s1, params[1]);
STRGET(ep, s2, params[2]);
+ if ((!s1) || (!s2)) return -1;
p = strrchr(s1, s2[0]);
if (!p) return -1;
return (Embryo_Cell)(p - s1);