Revision: 48486
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48486&view=rev
Author:   r_weiss
Date:     2012-01-12 14:04:53 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
Updated file 'obj-g.c' to remove potential of dereferencing a null pointer. 
Coverity CID 1739.

Modified Paths:
--------------
    brlcad/trunk/src/conv/obj-g.c

Modified: brlcad/trunk/src/conv/obj-g.c
===================================================================
--- brlcad/trunk/src/conv/obj-g.c       2012-01-12 14:02:04 UTC (rev 48485)
+++ brlcad/trunk/src/conv/obj-g.c       2012-01-12 14:04:53 UTC (rev 48486)
@@ -2343,7 +2343,7 @@
                                   &num_unique_texture_vertex_index_list);
     }
 
-    if (debug) {
+    if (debug && vertex_index_list && (num_unique_vertex_index_list > 0)) {
        for (idx1 = 0 ; idx1 < num_unique_vertex_index_list ; idx1++) {
            bu_log("unique sorted vertex_index_list[idx1] = (%zu)\n",
                   vertex_index_list[idx1]);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to