ctx->private[2] = (intptr_t)s;
}
-static struct string_set *
-alloc_prepopulate_pats(struct apply_ctx *ctx)
-{
- struct string_set *s = CALLOC(1, sizeof(*s));
- set_prepopulate_pats(ctx, s);
- return s;
-}
-
static struct string_set *
get_prepopulate_pats(struct apply_ctx *ctx)
{
if (ret)
return ret;
- s = alloc_prepopulate_pats(ctx);
+ s = CALLOC(1, sizeof(struct string_set));
if (!s) {
FREE(buf);
return WIMLIB_ERR_NOMEM;
mangle_pat);
FREE(buf);
if (ret) {
- free_prepopulate_pats(ctx);
+ FREE(s);
return ret;
}
+ set_prepopulate_pats(ctx, s);
ctx->private[3] = (intptr_t)mem;
return 0;
}