Revision: 45878
http://brlcad.svn.sourceforge.net/brlcad/?rev=45878&view=rev
Author: brlcad
Date: 2011-08-10 05:00:22 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
prevent crashing if idb_meth isn't set
Modified Paths:
--------------
brlcad/trunk/src/librt/db5_io.c
brlcad/trunk/src/librt/wdb.c
Modified: brlcad/trunk/src/librt/db5_io.c
===================================================================
--- brlcad/trunk/src/librt/db5_io.c 2011-08-10 04:48:09 UTC (rev 45877)
+++ brlcad/trunk/src/librt/db5_io.c 2011-08-10 05:00:22 UTC (rev 45878)
@@ -735,7 +735,7 @@
/* Scale change on export is 1.0 -- no change */
ret = -1;
- if (ip->idb_meth->ft_export5) {
+ if (ip->idb_meth && ip->idb_meth->ft_export5) {
ret = ip->idb_meth->ft_export5(&body, ip, conv2mm, dbip, resp);
}
if (ret < 0) {
Modified: brlcad/trunk/src/librt/wdb.c
===================================================================
--- brlcad/trunk/src/librt/wdb.c 2011-08-10 04:48:09 UTC (rev 45877)
+++ brlcad/trunk/src/librt/wdb.c 2011-08-10 05:00:22 UTC (rev 45878)
@@ -292,7 +292,7 @@
BU_EXTERNAL_INIT(&ext);
ret = -1;
- if (ip->idb_meth->ft_export4) {
+ if (ip->idb_meth && ip->idb_meth->ft_export4) {
ret = ip->idb_meth->ft_export4(&ext, ip, local2mm, wdbp->dbip,
&rt_uniresource);
}
if (ret < 0) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits