From: Pip Cet Date: Thu, 4 Jul 2024 22:09:55 +0000 (+0000) Subject: Fix dumping finalizers with pdumper X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c41f2664b96d3acb997279fe7e6dd96cbc225f56;p=emacs.git Fix dumping finalizers with pdumper * src/pdumper.c (dump_finalizer): Use `out' (a pointer to a finalizer) rather than `&out' (a pointer to a pointer to a finalizer). (cherry picked from commit d76eb23232bffdf2505b13ec9216c6d0487a0ccb) --- diff --git a/src/pdumper.c b/src/pdumper.c index 138777e7134..bc5748c8c47 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -2208,9 +2208,9 @@ dump_finalizer (struct dump_context *ctx, /* Do _not_ call dump_pseudovector_lisp_fields here: we dump the only Lisp field, finalizer->function, manually, so we can give it a low weight. */ - dump_field_lv (ctx, &out, finalizer, &finalizer->function, WEIGHT_NONE); - dump_field_finalizer_ref (ctx, &out, finalizer, &finalizer->prev); - dump_field_finalizer_ref (ctx, &out, finalizer, &finalizer->next); + dump_field_lv (ctx, out, finalizer, &finalizer->function, WEIGHT_NONE); + dump_field_finalizer_ref (ctx, out, finalizer, &finalizer->prev); + dump_field_finalizer_ref (ctx, out, finalizer, &finalizer->next); return finish_dump_pvec (ctx, &out->header); }