IOP: Cleanup variable scope.

Codacy.
This commit is contained in:
lightningterror 2022-06-24 18:00:49 +02:00
parent b54521de51
commit f42647426b
1 changed files with 1 additions and 3 deletions

View File

@ -28,10 +28,8 @@ static unsigned psxout_repeat;
static void flush_stdout(bool closing = false)
{
size_t linelen;
while (!psxout_buf.empty()) {
linelen = psxout_buf.find_first_of("\n\0", 0, 2);
size_t linelen = psxout_buf.find_first_of("\n\0", 0, 2);
if (linelen == std::string::npos) {
if (!closing)
return;