summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-29 14:26:26 +0200
committerMichael Adam <obnox@samba.org>2009-07-29 16:26:23 +0200
commit6abcdaad28162204fb9e9cc482ee03b4d4d6fe0a (patch)
treeddafdf9eb0deb4a52c011685e1b7038e1ebad8e5
parent8b0993e0850020c89e5b096366565da8f1a4432d (diff)
downloadsamba-6abcdaad28162204fb9e9cc482ee03b4d4d6fe0a.tar.gz
samba-6abcdaad28162204fb9e9cc482ee03b4d4d6fe0a.tar.bz2
samba-6abcdaad28162204fb9e9cc482ee03b4d4d6fe0a.zip
s3:dbwrap: untangle assignment and check in dbwrap_change_int32_atomic()
Michael
-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 f83840d8b7..fe3060c89a 100644
--- 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;
}