Fix build warning

This commit is contained in:
Vitaliy Filippov
2024-03-16 15:35:10 +03:00
parent 8807a1623b
commit b5e04bf809
+2 -2
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);
});