diff --git a/error.c b/error.c index 7b0ee11c01b678..dcb1f9d391959d 100644 --- a/error.c +++ b/error.c @@ -979,11 +979,12 @@ bug_report_end(FILE *out, rb_pid_t pid) void ruby_test_bug_report(const char *template) { + rb_pid_t pid = -1; char buf[REPORT_BUG_BUFSIZ]; - FILE *out = open_report_path(template, buf, sizeof(buf)); + FILE *out = open_report_path(template, buf, sizeof(buf), &pid); if (out) { fputs("ruby_test_bug_report\n", out); - finish_report(out); + finish_report(out, pid); } }