1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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