Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv29291/classes

Modified Files:
        MApplication.cpp 
Log Message:
don't crash if the global profile couldn't be created

Index: MApplication.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MApplication.cpp,v
retrieving revision 1.251
retrieving revision 1.252
diff -b -u -2 -r1.251 -r1.252
--- MApplication.cpp    22 Apr 2002 13:36:21 -0000      1.251
+++ MApplication.cpp    22 Apr 2002 16:35:14 -0000      1.252
@@ -342,4 +342,10 @@
    m_profile = Profile::CreateGlobalConfig(m_cmdLineOptions->configFile);
 
+   if ( !m_profile )
+   {
+      // not much we can do
+      return false;
+   }
+
    // disable the use of environment variables if configured like this (this
    // speeds up things relatively significantly under Windows - and as few


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to