Revision: 48436
http://brlcad.svn.sourceforge.net/brlcad/?rev=48436&view=rev
Author: starseeker
Date: 2012-01-11 20:35:15 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Check eptr before we use it. CID 292
Modified Paths:
--------------
brlcad/trunk/src/libged/wdb_bigE.c
Modified: brlcad/trunk/src/libged/wdb_bigE.c
===================================================================
--- brlcad/trunk/src/libged/wdb_bigE.c 2012-01-11 20:34:52 UTC (rev 48435)
+++ brlcad/trunk/src/libged/wdb_bigE.c 2012-01-11 20:35:15 UTC (rev 48436)
@@ -265,7 +265,8 @@
break;
case OP_DB_LEAF:
if ((dp=db_lookup(dgcdp->dgop->dgo_wdbp->dbip, tp->tr_l.tl_name,
LOOKUP_NOISY)) == RT_DIR_NULL) {
- eptr->l.m = (struct model *)NULL;
+ if (eptr)
+ eptr->l.m = (struct model *)NULL;
break;
}
eptr = wdb_add_solid(dp, tp->tr_l.tl_mat, dgcdp);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits