Revision: 56719
          http://sourceforge.net/p/brlcad/code/56719
Author:   brlcad
Date:     2013-08-09 18:47:43 +0000 (Fri, 09 Aug 2013)
Log Message:
-----------
carl noticed that the rt_g global was not initialized for several commands that 
use it and sure enough, it doesn't look like anything initializes it??  add a 
static initializer so that it at least starts out mostly zero (magic numbers 
are set as conventioned in libbu).

Modified Paths:
--------------
    brlcad/trunk/src/librt/globals.c

Modified: brlcad/trunk/src/librt/globals.c
===================================================================
--- brlcad/trunk/src/librt/globals.c    2013-08-09 18:40:41 UTC (rev 56718)
+++ brlcad/trunk/src/librt/globals.c    2013-08-09 18:47:43 UTC (rev 56719)
@@ -36,7 +36,7 @@
 #include "db.h"
 
 
-struct rt_g RTG;
+struct rt_g RTG = RT_G_INIT_ZERO;
 
 struct resource rt_uniresource;
 

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


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to