summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}