git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
261d6b0
)
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
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 20:22:12 +0000
(22:22 +0200)
(ret < 0) can never be true
lib/tdb/common/tdb.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/tdb.c
b/lib/tdb/common/tdb.c
index a28e8837c86359950fd2228033e1476d950cbd6b..66be555a067aa5c2db3d8a3671c215acaf07ba56 100644
(file)
--- a/
lib/tdb/common/tdb.c
+++ b/
lib/tdb/common/tdb.c
@@
-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;
+ s
s
ize_t ret;
ret = write(fd, buf, count);
if (ret < 0)
return false;