pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:6104:    {    char *tab;    int size;    int minfree = 0;       /* Initialize the lookup table */    max += 1;    max *= 2;    /* max will be the padding at the end. */    size = (nelems + max) * 8; /* Initial size */ -  if (!(tab = malloc(size + max))) { -  SIMPLE_OUT_OF_MEMORY_ERROR("interleave_array", size+max); -  } -  memset(tab, 0, size + max); +  tab = xcalloc(size + max, 1);       for (i = 0; i < order->size; i++) {    int low = ITEM(min)[i].u.integer;    int j = ITEM(order)[i].u.integer;    int offset = 0;    int ok = 0;    struct mapping *m;    struct mapping_data *md;    INT32 e;    struct keypair *k;