]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dumping finalizers with pdumper
authorPip Cet <pipcet@protonmail.com>
Thu, 4 Jul 2024 22:09:55 +0000 (22:09 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jul 2024 13:16:53 +0000 (15:16 +0200)
* 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)

src/pdumper.c

index 138777e71346bcfb57f1a81be710aa1785053fbc..bc5748c8c475a83ff322eb8b070f92572c8aee42 100644 (file)
@@ -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);
 }