Fixed varargs in rb_bug_without_die [Bug #17603]

This commit is contained in:
xtkoba (Tee KOBAYASHI) 2021-02-01 01:16:14 +00:00 committed by Nobuyoshi Nakada
parent 22b8ddfd10
commit 0e5fbec816
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -766,7 +766,7 @@ die(void)
}
void
rb_bug_without_die(const char *fmt, ...)
rb_bug_without_die(const char *fmt, va_list args)
{
const char *file = NULL;
int line = 0;
@ -775,7 +775,7 @@ rb_bug_without_die(const char *fmt, ...)
file = rb_source_location_cstr(&line);
}
report_bug(file, line, fmt, NULL);
report_bug_valist(file, line, fmt, NULL, args);
}
void