From 07f1a6e4576b415f991c314c23271754e997c40c Mon Sep 17 00:00:00 2001
From: akir <akir>
Date: Wed, 29 Sep 2004 00:51:29 +0000
Subject: fixes #1026929 (sourceforge)

---
 util/fbrun/FbRun.cc | 8 ++++++--
 1 file 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 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: FbRun.cc,v 1.31 2004/08/31 15:26:40 rathnor Exp $
+// $Id: FbRun.cc,v 1.32 2004/09/29 00:51:29 akir Exp $
 
 #include "FbRun.hh"
 
@@ -166,7 +166,11 @@ bool FbRun::loadHistory(const char *filename) {
     ifstream infile(filename);
     if (!infile) {
         //even though we fail to load file, we should try save to it
-        m_history_file = filename;
+        ofstream outfile(filename);
+        if (outfile) {
+            m_history_file = filename;
+            return true;
+        }
         return false;
     }
     // clear old history and load new one from file
-- 
cgit v0.11.2