git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f26f6
)
s4:torture/local/dbspeed.c - use LDB result constant
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Fri, 15 Oct 2010 18:18:22 +0000
(20:18 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Fri, 15 Oct 2010 19:11:32 +0000
(19:11 +0000)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104
source4/torture/local/dbspeed.c
patch
|
blob
|
history
diff --git
a/source4/torture/local/dbspeed.c
b/source4/torture/local/dbspeed.c
index f66688dd54d4193b7c4c339471358ac3d3918064..62c1384d771b9e6e292b8734ee3b3053c1d1313a 100644
(file)
--- a/
source4/torture/local/dbspeed.c
+++ b/
source4/torture/local/dbspeed.c
@@
-145,7
+145,8
@@
static bool ldb_add_record(struct ldb_context *ldb, unsigned rid)
return false;
}
- if (ldb_msg_add_fmt(msg, "UID", "%u", rid) != 0) {
+ ret = ldb_msg_add_fmt(msg, "UID", "%u", rid);
+ if (ret != LDB_SUCCESS) {
talloc_free(msg);
return false;
}