mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
tdb: Fix Coverity ID 2192: NO_EFFECT
(ret < 0) can never be true
This commit is contained in:
parent
261d6b0e9b
commit
25397de589
@ -993,7 +993,7 @@ _PUBLIC_ int tdb_repack(struct tdb_context *tdb)
|
||||
bool tdb_write_all(int fd, const void *buf, size_t count)
|
||||
{
|
||||
while (count) {
|
||||
size_t ret;
|
||||
ssize_t ret;
|
||||
ret = write(fd, buf, count);
|
||||
if (ret < 0)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user