summaryrefslogtreecommitdiff
path: root/debian/patches/src_libgo_runtime_go-caller.c.diff
blob: 6561a53883dbb5ecfdbcd46bd4cd3fe1f2a65612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: gcc/src/libgo/runtime/go-caller.c
===================================================================
--- gcc/src/libgo/runtime/go-caller.c	(révision 235086)
+++ gcc/src/libgo/runtime/go-caller.c	(copie de travail)
@@ -93,7 +93,7 @@
 	 argv[0] (http://gcc.gnu.org/PR61895).  It would be nice to
 	 have a better check for whether this file is the real
 	 executable.  */
-      if (stat (filename, &s) < 0 || s.st_size < 1024)
+      if (filename != NULL && (stat (filename, &s) < 0 || s.st_size < 1024))
 	filename = NULL;
 
       back_state = backtrace_create_state (filename, 1, error_callback, NULL);