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 diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
+++ b/src/toplev.cc
@@ -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 ();