cd51e1745a
be a macro. Don't ever copy FILEs, bail out silently if stderr can't be reopened. Bump revision.
23 lines
681 B
Text
23 lines
681 B
Text
$NetBSD: patch-ad,v 1.1 2006/04/28 16:19:08 joerg Exp $
|
|
|
|
--- src/debug.c.orig 2001-01-13 22:09:50.000000000 +0000
|
|
+++ src/debug.c
|
|
@@ -165,16 +165,8 @@ void setup_diagnostic_log()
|
|
/* Redirect stderr to file; taken from SDL_main.c, which is in the
|
|
public domain */
|
|
newfp = freopen(BUGREPORT_FILE, "w", stderr);
|
|
- if ( newfp == NULL ) { /* This happens on NT */
|
|
-#if !defined(stderr)
|
|
- stderr = fopen(BUGREPORT_FILE, "w");
|
|
-#else
|
|
- newfp = fopen(BUGREPORT_FILE, "w");
|
|
- if ( newfp ) {
|
|
- *stderr = *newfp;
|
|
- }
|
|
-#endif
|
|
- }
|
|
+ if ( newfp == NULL )
|
|
+ exit(1);
|
|
|
|
/* Write bug report header */
|
|
fprintf( stderr, "Tux Racer Diagnostic Log\n\n" );
|