From 1c2e4f94cdfd3769e0adb78d558c2c85e4e9502a Mon Sep 17 00:00:00 2001 From: h_vogt Date: Fri, 22 Feb 2013 21:11:05 +0100 Subject: [PATCH] inp.c: nullify dbs for use with 'source' command --- src/frontend/inp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 5d82d7a9b..5ececcdc0 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -365,6 +365,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename) /* do this here and in the 'else' branch of 'if (comfile)' */ if (dbs) dbfree(dbs); + dbs = NULL; ft_dotsaves(); } /* end if (comfile) */ @@ -661,6 +662,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename) (When controls are executed later on, also stores TRACE, IPLOT, and STOP data) */ if (dbs) dbfree(dbs); + dbs = NULL; /* .save data stored in dbs. Do this here before controls are run: .save is thus recognized even if .control is used */