On Sat, Jan 17, 2009 at 9:08 PM, Martin Spott <martin.sp...@mgras.net> wrote:
> nevertheless I'm surprised to see a missing XML config file
> segfaulting the entire simulation (current CVS, Linux AMD64).
I am not :)
--
Csaba/Jester
Index: src/FDM/JSBSim/models/FGFCS.cpp
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/JSBSim/models/FGFCS.cpp,v
retrieving revision 1.8
diff -u -r1.8 FGFCS.cpp
--- src/FDM/JSBSim/models/FGFCS.cpp 30 Nov 2008 10:44:30 -0000 1.8
+++ src/FDM/JSBSim/models/FGFCS.cpp 17 Jan 2009 22:12:50 -0000
@@ -514,6 +514,10 @@
return false;
} else {
document = LoadXMLDocument(file);
+ if (!document) {
+ cerr << "Error loading file " << file << endl;
+ return false;
+ }
name = document->GetAttributeValue("name");
}
} else {
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel