Revision: 48492
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48492&view=rev
Author:   bob1961
Date:     2012-01-12 14:52:40 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
Undo the last two commits because they didn't satisfy covarity. We have another 
lower level fix that should suffice.

Modified Paths:
--------------
    brlcad/trunk/src/conv/intaval/tgf-g.cpp

Modified: brlcad/trunk/src/conv/intaval/tgf-g.cpp
===================================================================
--- brlcad/trunk/src/conv/intaval/tgf-g.cpp     2012-01-12 14:23:34 UTC (rev 
48491)
+++ brlcad/trunk/src/conv/intaval/tgf-g.cpp     2012-01-12 14:52:40 UTC (rev 
48492)
@@ -30,8 +30,6 @@
 #include <iostream>
 #include <fstream>
 
-#include "bu.h"
-
 #include "regtab.h"
 #include "read_dra.h"
 
@@ -66,14 +64,8 @@
                    ret = 1;
                }
                else {
-                   struct rt_wdb* wdbp;
+                   struct rt_wdb* wdbp = wdb_fopen(argv[3]); // force create
 
-                   if (!bu_str_isprint(argv[3])) {
-                       std::cout << "Invalid BRL-G filename" << std::endl;
-                       return 1;
-                   }
-
-                   wdbp = wdb_fopen(argv[3]); // force create
                    conv(is, wdbp);
                    createRegions(wdbp);
                    wdb_close(wdbp);

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