git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c5259b
)
tdb: Fix Coverity ID 2192: NO_EFFECT
author
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 19:43:53 +0000
(21:43 +0200)
committer
Michael Adam
<obnox@samba.org>
Mon, 19 Aug 2013 09:36:42 +0000
(11:36 +0200)
(ret < 0) can never be true
(cherry picked from commit
25397de589e577e32bb291576b10c18978b5bc4e
)
lib/tdb/common/tdb.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/tdb.c
b/lib/tdb/common/tdb.c
index 4d8c5fc59c9952056fa177c75ce93922276b45d8..eeadf2f8eeb5f9c8ec7b140ed5279756c11d97c9 100644
(file)
--- a/
lib/tdb/common/tdb.c
+++ b/
lib/tdb/common/tdb.c
@@
-993,7
+993,7
@@
int tdb_repack(struct tdb_context *tdb)
bool tdb_write_all(int fd, const void *buf, size_t count)
{
while (count) {
- size_t ret;
+ s
s
ize_t ret;
ret = write(fd, buf, count);
if (ret < 0)
return false;