Fix build warning

master
Vitaliy Filippov 2024-03-16 14:26:01 +03:00
parent 8807a1623b
commit b5e04bf809
1 changed files with 2 additions and 2 deletions

View File

@ -551,8 +551,8 @@ void kv_cli_t::handle_cmd(const std::vector<std::string> & cmd, std::function<vo
fprintf(stderr, "Error: %s (code %d)\n", strerror(-res), res);
else
{
write(1, value.c_str(), value.size());
write(1, "\n", 1);
if (write(1, value.c_str(), value.size()) < 0 || write(1, "\n", 1) < 0)
exit(1);
}
cb(res);
});