Revision: 48463
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48463&view=rev
Author:   starseeker
Date:     2012-01-12 00:36:23 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
If interpreter is NULL, that's a Bad Thing - warn and return without trying 
anything fancy.  CID 312

Modified Paths:
--------------
    brlcad/trunk/src/mged/setup.c

Modified: brlcad/trunk/src/mged/setup.c
===================================================================
--- brlcad/trunk/src/mged/setup.c       2012-01-12 00:35:08 UTC (rev 48462)
+++ brlcad/trunk/src/mged/setup.c       2012-01-12 00:36:23 UTC (rev 48463)
@@ -472,7 +472,12 @@
        Tcl_FindExecutable("mged");
     }
 
-    if (interpreter && *interpreter != NULL)
+    if (!interpreter ) {
+      bu_log("mged_setup Error - interpreter is NULL!\n");
+      return;
+    }
+
+    if (*interpreter != NULL)
        Tcl_DeleteInterp(*interpreter);
 
     /* Create the interpreter */

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