diff src/toplev.cc @ 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 679c270b7584
children aeedc045cfe3
line wrap: on
line diff
--- 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 ();