mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 02:40:28 +00:00
testlib/showerror.c fix SIGSEGV due to improper use of tinyprint
This commit is contained in:
parent
ed316491ca
commit
eb610f1490
1 changed files with 2 additions and 2 deletions
|
@ -98,9 +98,9 @@ static void testlib_showerror_(int line, //
|
||||||
}
|
}
|
||||||
if (!isempty(fmt)) {
|
if (!isempty(fmt)) {
|
||||||
if (_weaken(kvprintf)) {
|
if (_weaken(kvprintf)) {
|
||||||
tinyprint(2, "\t");
|
tinyprint(2, "\t", NULL);
|
||||||
_weaken(kvprintf)(fmt, va);
|
_weaken(kvprintf)(fmt, va);
|
||||||
tinyprint(2, "\n");
|
tinyprint(2, "\n", NULL);
|
||||||
} else {
|
} else {
|
||||||
tinyprint(2, "\t[missing kvprintf]\n");
|
tinyprint(2, "\t[missing kvprintf]\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue