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:
8b0993e
)
s3:dbwrap: untangle assignment and check in dbwrap_change_int32_atomic()
author
Michael Adam
<obnox@samba.org>
Wed, 29 Jul 2009 12:26:26 +0000
(14:26 +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 f83840d8b7a16ada93866977fdd20668b2658829..fe3060c89ac86ae9ea8d65ad59053eefec829199 100644
(file)
--- a/
source3/lib/dbwrap_util.c
+++ b/
source3/lib/dbwrap_util.c
@@
-156,8
+156,8
@@
NTSTATUS dbwrap_change_int32_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;
}