Revision: 48440
http://brlcad.svn.sourceforge.net/brlcad/?rev=48440&view=rev
Author: starseeker
Date: 2012-01-11 21:08:43 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Check fu_base before using it - Coverity thinks there's a path to get there
that can have fu_base NULL. CID 295
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c
Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c 2012-01-11 20:57:45 UTC
(rev 48439)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c 2012-01-11 21:08:43 UTC
(rev 48440)
@@ -9700,7 +9700,8 @@
/* This looks like a good candidate,
* Calculate center of base and top faces
*/
-
+
+ if (fu_base) {
vert_count = 0;
VSETALL(sum, 0.0);
lu = BU_LIST_FIRST(loopuse, &fu_base->lu_hd);
@@ -9812,6 +9813,8 @@
tgc_int->magic = RT_TGC_INTERNAL_MAGIC;
+ }
+
return 1;
}
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