tdb: Clarify the CLEAR_IF_FIRST locked logic
authorVolker Lendecke <vl@samba.org>
Wed, 16 Aug 2017 13:21:14 +0000 (15:21 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 17 Aug 2017 09:54:10 +0000 (11:54 +0200)
commita90702fc5d5898b8a45e8335d8de8d46c08870fa
tree7b8a5f616b3040ed1847a10766c9c6e5939a2150
parent9468d0f41e37d505502f3faee736aaf3b44a17ff
tdb: Clarify the CLEAR_IF_FIRST locked logic

This is another level of indentation, but it took me a while staring at the
if-condition to find that "locked" was assigned the result of "==0", not the
return value of tdb_nest_lock().

Best viewed with "git show -b".

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/tdb/common/open.c