summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/fbrun/FbRun.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index 09efd12..0199f88 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbRun.cc,v 1.31 2004/08/31 15:26:40 rathnor Exp $ 22// $Id: FbRun.cc,v 1.32 2004/09/29 00:51:29 akir Exp $
23 23
24#include "FbRun.hh" 24#include "FbRun.hh"
25 25
@@ -166,7 +166,11 @@ bool FbRun::loadHistory(const char *filename) {
166 ifstream infile(filename); 166 ifstream infile(filename);
167 if (!infile) { 167 if (!infile) {
168 //even though we fail to load file, we should try save to it 168 //even though we fail to load file, we should try save to it
169 m_history_file = filename; 169 ofstream outfile(filename);
170 if (outfile) {
171 m_history_file = filename;
172 return true;
173 }
170 return false; 174 return false;
171 } 175 }
172 // clear old history and load new one from file 176 // clear old history and load new one from file