summaryrefslogtreecommitdiffstats
path: root/lang/ruby18
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-04-19 19:36:28 +0000
committerknu <knu@FreeBSD.org>2003-04-19 19:36:28 +0000
commitd5d2e630b27ecc698877eea1253aa7572ab854cb (patch)
tree776d564c560ffc36cafbecf12a4411df1637746b /lang/ruby18
parentfcd1643b36decd6cf75c314b0b013f69cbbaf3dc (diff)
downloadFreeBSD-ports-d5d2e630b27ecc698877eea1253aa7572ab854cb.zip
FreeBSD-ports-d5d2e630b27ecc698877eea1253aa7572ab854cb.tar.gz
Add a patch to fix coredump that occurs when you run ruby with the
verbose flag on. (ruby -v -e 'begin;end') PORTREVISION is not bumped since this is not a significant problem for most people.
Diffstat (limited to 'lang/ruby18')
-rw-r--r--lang/ruby18/files/patch-parse.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/ruby18/files/patch-parse.c b/lang/ruby18/files/patch-parse.c
new file mode 100644
index 0000000..8ce14c1
--- /dev/null
+++ b/lang/ruby18/files/patch-parse.c
@@ -0,0 +1,13 @@
+--- parse.c.orig Sun Apr 20 04:22:00 2003
++++ parse.c Sun Apr 20 04:23:40 2003
+@@ -9514,9 +9514,9 @@
+ char *useless = 0;
+
+ if (!RTEST(ruby_verbose)) return;
+- if (!node) return;
+
+ again:
++ if (!node) return;
+ switch (nd_type(node)) {
+ case NODE_NEWLINE:
+ node = node->nd_next;
OpenPOWER on IntegriCloud