Avoid zstr in write_debug when no *debug* buffer can be created
This commit is contained in:
parent
7176685690
commit
04a922fe1a
|
@ -13,7 +13,8 @@ void write_debug(StringView str)
|
||||||
{
|
{
|
||||||
if (not BufferManager::has_instance())
|
if (not BufferManager::has_instance())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n", (const char*)str.zstr());
|
write(2, str.data(), (int)str.length());
|
||||||
|
write(2, "\n", 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user