> > the use of `xcalloc()`, and now that I think further about it, an > > `xmalloc()` should be plenty enough: `regcomp()` does not need that struct > > to be initialized to all zero. > > Yup, I think it makes sense. Sure thing, I will switch to xmalloc() in v3. xcalloc()'s semantics ("allocate one structure of this size") appealed to me, but there is indeed no need to zero-initialize the allocated memory before passing it to regcomp(). -- Best regards, Michał Kępień