MAGIC2
g->magic = MAGIC2;
if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
if (g == NULL || g->magic != MAGIC2) /* oops again */