CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2010/06/30 13:12:54

Modified files:
        usr.bin/mg     : buffer.c def.h undo.c 

Log message:
you keep saying LIST_END. I do not think it means what you think it
means.

If we hit an OOM condition, mg started to try and dump the older undo buffer
entries in order to be able to continue. OTOH, it was grabbing this entry with
LIST_END, which like all *_END() list macros evaluates to NULL.

Do what we actually want and switch that list to a TAILQ and use
TAILQ_LAST to grab the last entry.

Wrote this a loooooong time ago after a mail from Matthew Dempsky on
b...@. ok kjell@, beck@ also looked at this months ago and thought it
was alright.

Reply via email to