Index: passdb/pdb_tdb.c =================================================================== --- passdb/pdb_tdb.c (revision 16619) +++ passdb/pdb_tdb.c (working copy) @@ -1310,7 +1310,6 @@ static BOOL tdb_update_sam(struct pdb_methods *my_methods, struct samu* newpwd, int flag) { - uint32 user_rid; BOOL result = True; /* invalidate the existing TDB iterator if it is open */ @@ -1325,7 +1324,7 @@ } #endif - if ( !(user_rid = pdb_get_user_rid(newpwd)) ) { + if ( !pdb_get_user_rid(newpwd) ) { DEBUG(0,("tdb_update_sam: struct samu (%s) with no RID!\n", pdb_get_username(newpwd))); return False; }