Revision: 48420
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48420&view=rev
Author:   starseeker
Date:     2012-01-11 18:31:58 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Make sure we have eptr before trying to use it in the LEAF case. CID 273

Modified Paths:
--------------
    brlcad/trunk/src/libged/bigE.c

Modified: brlcad/trunk/src/libged/bigE.c
===================================================================
--- brlcad/trunk/src/libged/bigE.c      2012-01-11 18:21:22 UTC (rev 48419)
+++ brlcad/trunk/src/libged/bigE.c      2012-01-11 18:31:58 UTC (rev 48420)
@@ -253,8 +253,10 @@
            break;
        case OP_DB_LEAF:
            if ((dp=db_lookup(dgcdp->gedp->ged_wdbp->dbip, tp->tr_l.tl_name, 
LOOKUP_NOISY)) == RT_DIR_NULL) {
+             if (eptr) {
                eptr->l.m = (struct model *)NULL;
-               break;
+             }
+             break;
            }
            eptr = add_solid(dp, tp->tr_l.tl_mat, dgcdp);
            eptr->l.op = tp->tr_op;

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

Reply via email to