summaryrefslogtreecommitdiff
path: root/debian/patches/src_libgo_runtime_go-caller.c.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/src_libgo_runtime_go-caller.c.diff')
-rw-r--r--debian/patches/src_libgo_runtime_go-caller.c.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/src_libgo_runtime_go-caller.c.diff b/debian/patches/src_libgo_runtime_go-caller.c.diff
new file mode 100644
index 0000000..6561a53
--- /dev/null
+++ b/debian/patches/src_libgo_runtime_go-caller.c.diff
@@ -0,0 +1,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);
+