Revision: 42186
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42186&view=rev
Author:   brlcad
Date:     2011-01-12 23:39:45 +0000 (Wed, 12 Jan 2011)

Log Message:
-----------
make sure we have an out if we don't have an out.

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

Modified: brlcad/trunk/src/mged/mged.c
===================================================================
--- brlcad/trunk/src/mged/mged.c        2011-01-12 23:39:00 UTC (rev 42185)
+++ brlcad/trunk/src/mged/mged.c        2011-01-12 23:39:45 UTC (rev 42186)
@@ -1043,7 +1043,7 @@
 
     Tcl_Channel chan;
     struct timeval timeout;
-    FILE *out;
+    FILE *out = stdout;
 
 #if !defined(_WIN32) || defined(__CYGWIN__)
     fd_set read_set;
@@ -1133,6 +1133,8 @@
 
     if (bu_debug > 0)
        out = fopen("/tmp/stdout", "w+"); /* I/O testing */
+    if (!out)
+       out = stdout;
 
     if (argc > 1) {
        /* if there is more than a file name remaining, mged is not interactive 
*/


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to