fixes #1026929 (sourceforge)
akir akir
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
util/fbrun/FbRun.cc
→
util/fbrun/FbRun.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ return false;
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