X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=sprinter-sexp.c;h=e37cb1f97e30cc48366fdf7fc4ae0c00fe6efa0d;hp=63b254284b4a6d73861896587b12bc2a6281144f;hb=HEAD;hpb=eef21c284742fa5ae14d7d352acc3a4dc98821ce diff --git a/sprinter-sexp.c b/sprinter-sexp.c index 63b25428..e37cb1f9 100644 --- a/sprinter-sexp.c +++ b/sprinter-sexp.c @@ -207,7 +207,7 @@ sexp_separator (struct sprinter *sp) } struct sprinter * -sprinter_sexp_create (const void *ctx, FILE *stream) +sprinter_sexp_create (notmuch_database_t *db, FILE *stream) { static const struct sprinter_sexp template = { .vtable = { @@ -227,11 +227,12 @@ sprinter_sexp_create (const void *ctx, FILE *stream) }; struct sprinter_sexp *res; - res = talloc (ctx, struct sprinter_sexp); + res = talloc (db, struct sprinter_sexp); if (! res) return NULL; *res = template; + res->vtable.notmuch = db; res->stream = stream; return &res->vtable; }