[sword-cvs] sword/src/mgr swmgr.cpp,1.105,1.106
sword at www.crosswire.org
sword at www.crosswire.org
Mon Jun 7 12:38:01 MST 2004
Committed by: mgruner
Update of /cvs/core/sword/src/mgr
In directory www:/tmp/cvs-serv11325/mgr
Modified Files:
swmgr.cpp
Log Message:
mgruner: fixed bug that caused crash on erroneous module .conf files.
It happened when there was an erronous ModDrv= entry.
Index: swmgr.cpp
===================================================================
RCS file: /cvs/core/sword/src/mgr/swmgr.cpp,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- swmgr.cpp 29 May 2004 01:12:42 -0000 1.105
+++ swmgr.cpp 7 Jun 2004 19:37:59 -0000 1.106
@@ -809,7 +809,10 @@
if ((entry = section.find("Type")) != section.end())
newmod->Type(entry->second.c_str());
- newmod->setConfig(§ion);
+ if (newmod){
+ newmod->setConfig(§ion);
+ }
+
return newmod;
}
More information about the sword-cvs
mailing list