Revision: 55524
http://sourceforge.net/p/brlcad/code/55524
Author: brlcad
Date: 2013-05-21 20:15:26 +0000 (Tue, 21 May 2013)
Log Message:
-----------
behave more user-friendly gracefully if we attempt to close a null dbip. let
it mean we have nothing to do instead of halting the application.
Modified Paths:
--------------
brlcad/trunk/src/librt/db_open.c
Modified: brlcad/trunk/src/librt/db_open.c
===================================================================
--- brlcad/trunk/src/librt/db_open.c 2013-05-21 20:10:24 UTC (rev 55523)
+++ brlcad/trunk/src/librt/db_open.c 2013-05-21 20:15:26 UTC (rev 55524)
@@ -263,22 +263,32 @@
return dbip;
}
+
void
db_close_client(struct db_i *dbip, long int *client)
{
+ if (!dbip)
+ return;
+
RT_CK_DBI(dbip);
+
if (client) {
(void)bu_ptbl_rm(&dbip->dbi_clients, client);
}
+
db_close(dbip);
}
+
void
db_close(register struct db_i *dbip)
{
register int i;
register struct directory *dp, *nextdp;
+ if (!dbip)
+ return;
+
RT_CK_DBI(dbip);
if (RT_G_DEBUG&DEBUG_DB) bu_log("db_close(%s) x%x uses=%d\n",
dbip->dbi_filename, dbip, dbip->dbi_uses);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits