Revision: 48423
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48423&view=rev
Author:   starseeker
Date:     2012-01-11 18:50:19 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Put the rt_db_put_internal call using dp inside the check for the NULL 
condition - safer.  CID 276

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

Modified: brlcad/trunk/src/libged/bot_split.c
===================================================================
--- brlcad/trunk/src/libged/bot_split.c 2012-01-11 18:45:51 UTC (rev 48422)
+++ brlcad/trunk/src/libged/bot_split.c 2012-01-11 18:50:19 UTC (rev 48423)
@@ -131,12 +131,12 @@
                    bu_vls_printf(&error_str, " failed to be added to the 
database.\n");
                    rt_bot_list_free(headRblp, 0);
                    rt_db_free_internal(&intern);
-               }
-
-               if (rt_db_put_internal(dp, gedp->ged_wdbp->dbip, &bot_intern, 
&rt_uniresource) < 0) {
+               } else {
+                 if (rt_db_put_internal(dp, gedp->ged_wdbp->dbip, &bot_intern, 
&rt_uniresource) < 0) {
                    bu_vls_printf(&error_str, " failed to be added to the 
database.\n");
                    rt_bot_list_free(headRblp, 0);
                    rt_db_free_internal(&intern);
+                 }
                }
            }
 

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