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:
parent
22b8ddfd10
commit
0e5fbec816
1 changed files with 2 additions and 2 deletions
4
error.c
4
error.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue