fix TOP command

Signed-off-by: AGentooCat <agentoocat@mail.i2p>
This commit is contained in:
2025-06-10 21:39:26 +00:00
parent 07e99c953c
commit 898835b515

View File

@ -690,7 +690,7 @@ pullmailfail:
CLEARSQL(cached_gethead);
CLEARSQL(cached_getline);
freemail(mail);
return -ret;
return ret == SQLITE_OK ? -SQLITE_INTERNAL : -ret;
}
ret = sqlite3_step(cached_getmail);
@ -758,6 +758,7 @@ pullmailfail:
mail->size += 3;
mail->line_count++;
}
ret = SQLITE_DONE;
break;
}
}