summaryrefslogtreecommitdiff
path: root/games/tuxracer/patches/patch-ad
blob: c73a0c3371e1e3e7523116567895663fd43d3605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$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" );