In refactoring within prepare_object_for_alteration, I'd moved
a section of code to before we check whether entry is NULL.
/* We are about to add a fragment. Everything after this in the
* history must be thrown away. */
if (entry)
+ {
discard_journal_entries(ctx, &entry->next);
- for (frag = entry->head; frag != NULL; frag = frag->next)
- if (frag->obj_num == parent)
- {
- entry = NULL;
- break; /* Already stashed this one! */
- }
+ for (frag = entry->head; frag != NULL; frag = frag->next)
+ if (frag->obj_num == parent)
+ {
+ entry = NULL;
+ break; /* Already stashed this one! */
+ }
+ }
/*
We need to ensure that the containing hierarchy of objects