From 27f96357e1168e2be9bea3cd24f193d74d1dc432 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sat, 19 Apr 2003 19:36:28 +0000 Subject: 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. --- lang/ruby-devel/files/patch-parse.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lang/ruby-devel/files/patch-parse.c (limited to 'lang/ruby-devel') diff --git a/lang/ruby-devel/files/patch-parse.c b/lang/ruby-devel/files/patch-parse.c new file mode 100644 index 000000000000..8ce14c1a174a --- /dev/null +++ b/lang/ruby-devel/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; -- cgit v1.2.3