changeset 8735:afbfd7f4fd93

toplev.cc (do_octave_atexit): only save history if Vsaving_history is true
author John W. Eaton <jwe@octave.org>
date Fri, 13 Feb 2009 13:03:04 -0500
parents 767ed8cc6634
children 53b4fdeacc2e
files src/ChangeLog src/toplev.cc
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Feb 12 15:29:12 2009 -0500
+++ b/src/ChangeLog	Fri Feb 13 13:03:04 2009 -0500
@@ -1,3 +1,8 @@
+2009-02-13  John W. Eaton  <jwe@octave.org>
+
+	* toplev.cc (do_octave_atexit): Only save history if
+	Vsaving_history is true.
+
 2009-02-12  John W. Eaton  <jwe@octave.org>
 
 	* data.cc, ov-base-diag.h, ov-base-mat.h, ov-base-scalar.h,
--- a/src/toplev.cc	Thu Feb 12 15:29:12 2009 -0500
+++ b/src/toplev.cc	Fri Feb 13 13:03:04 2009 -0500
@@ -984,7 +984,8 @@
 
       octave_history_write_timestamp ();
 
-      command_history::clean_up_and_save ();
+      if (Vsaving_history)
+	command_history::clean_up_and_save ();
 
       close_files ();