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.
This commit is contained in:
Akinori MUSHA 2003-04-19 19:36:28 +00:00
parent e971e1684b
commit 27f96357e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79304
4 changed files with 52 additions and 0 deletions

View File

@ -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;

View File

@ -0,0 +1,13 @@
--- parse.c.orig Sun Apr 20 04:20:19 2003
+++ parse.c Sun Apr 20 04:21:02 2003
@@ -8519,9 +8519,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;

View File

@ -0,0 +1,13 @@
--- parse.c.orig Sun Apr 20 04:20:19 2003
+++ parse.c Sun Apr 20 04:21:02 2003
@@ -8519,9 +8519,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;

View File

@ -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;