git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de28460
)
s3:dbwrap: untangle assignemend and check in dbwrap_change_uint32_atomic()
author
Michael Adam
<obnox@samba.org>
Wed, 29 Jul 2009 12:25:29 +0000
(14:25 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 29 Jul 2009 14:26:23 +0000
(16:26 +0200)
Michael
source3/lib/dbwrap_util.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap_util.c
b/source3/lib/dbwrap_util.c
index 1e3755af981d1d8311e71ccdb5b30dcd0bb0f4b0..f83840d8b7a16ada93866977fdd20668b2658829 100644
(file)
--- a/
source3/lib/dbwrap_util.c
+++ b/
source3/lib/dbwrap_util.c
@@
-114,8
+114,8
@@
NTSTATUS dbwrap_change_uint32_atomic(struct db_context *db, const char *keystr,
TDB_DATA data;
NTSTATUS ret;
- if (!(rec = db->fetch_locked(db, NULL,
-
string_term_tdb_data(keystr)))
) {
+ rec = db->fetch_locked(db, NULL, string_term_tdb_data(keystr));
+
if (!rec
) {
return NT_STATUS_UNSUCCESSFUL;
}