shutdown: don't refer to an open file when there aren't any
This fixes https://savannah.gnu.org/bugs/?57780.
Bug existed since commit b63c90bf
from yesterday.
master
parent
422cd726fa
commit
cbeea859c2
|
@ -340,9 +340,8 @@ void finish(void)
|
||||||
/* If the user wants history persistence, write the relevant files. */
|
/* If the user wants history persistence, write the relevant files. */
|
||||||
if (ISSET(HISTORYLOG))
|
if (ISSET(HISTORYLOG))
|
||||||
save_history();
|
save_history();
|
||||||
if (ISSET(POSITIONLOG)) {
|
if (ISSET(POSITIONLOG) && openfile)
|
||||||
update_poshistory(openfile->filename, openfile->current->lineno, xplustabs() + 1);
|
update_poshistory(openfile->filename, openfile->current->lineno, xplustabs() + 1);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get out. */
|
/* Get out. */
|
||||||
|
|
Loading…
Reference in New Issue