Revision: 48451
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48451&view=rev
Author:   starseeker
Date:     2012-01-11 23:16:41 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Check parsetab before using it - CID 301

Modified Paths:
--------------
    brlcad/trunk/src/libbu/parse.c

Modified: brlcad/trunk/src/libbu/parse.c
===================================================================
--- brlcad/trunk/src/libbu/parse.c      2012-01-11 23:11:19 UTC (rev 48450)
+++ brlcad/trunk/src/libbu/parse.c      2012-01-11 23:16:41 UTC (rev 48451)
@@ -1058,6 +1058,9 @@
 {
     register const struct bu_structparse *sdp;
 
+    if (!parsetab)
+       return -1;
+
     for (sdp = parsetab; sdp->sp_name != NULL; sdp++)
        if (BU_STR_EQUAL(sdp->sp_name, name)) {
            bu_vls_struct_item(vp, sdp, base, sep_char);

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