[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/services
From:       Michael Matz <matz () kde ! org>
Date:       2006-07-12 16:48:37
Message-ID: 1152722917.129710.6889.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 561601 by matz:

Work-around a bug in older libstdc++.


 M  +3 -1      logging.cpp  


--- trunk/icecream/services/logging.cpp #561600:561601
@@ -42,9 +42,11 @@
     debug_level = level;
     logfile_filename = filename;
 
-    logfile_file.close();
+    if ( logfile_file.is_open() )
+        logfile_file.close();
     ostream *output = 0;
     if ( filename.length() ) {
+	logfile_file.clear();
         logfile_file.open( filename.c_str(), fstream::out | fstream::app );
         output = &logfile_file;
     } else
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic