summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-29 14:25:29 +0200
committerMichael Adam <obnox@samba.org>2009-07-29 16:26:23 +0200
commit8b0993e0850020c89e5b096366565da8f1a4432d (patch)
tree2f105fa3297c1484dd727c33d8f3779a48775e3d /source3/lib
parentde2846012b8b0ca24d342304d88819cab9f2cecf (diff)
downloadsamba-8b0993e0850020c89e5b096366565da8f1a4432d.tar.gz
samba-8b0993e0850020c89e5b096366565da8f1a4432d.tar.bz2
samba-8b0993e0850020c89e5b096366565da8f1a4432d.zip
s3:dbwrap: untangle assignemend and check in dbwrap_change_uint32_atomic()
Michael
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c
index 1e3755af98..f83840d8b7 100644
--- 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;
}