mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 01:12:39 +00:00
Check if chunk size is zero instead of negative
This corrects an unnecessary check and fixes compile error on OS X.
This commit is contained in:
parent
21a72bd47b
commit
2b2dbd887d
1 changed files with 2 additions and 2 deletions
|
@ -288,8 +288,8 @@ int import_from_file(FakeCore& simple_core, std::string& import_file_path, uint6
|
|||
{
|
||||
LOG_PRINT_L0("NOTE: chunk_size " << chunk_size << " > 100000");
|
||||
}
|
||||
else if (chunk_size < 0) {
|
||||
LOG_PRINT_L0("ERROR: chunk_size " << chunk_size << " < 0");
|
||||
else if (chunk_size == 0) {
|
||||
LOG_PRINT_L0("ERROR: chunk_size == 0");
|
||||
return 2;
|
||||
}
|
||||
import_file.read(buffer_block, chunk_size);
|
||||
|
|
Loading…
Reference in a new issue