summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-05-14 21:02:15 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-05-16 23:22:19 +0200
commit9910b8050ccb073fe47c26eeeeb60955d9f2d043 (patch)
tree50ca2fcd262992d4d7d7d44045592c24d29b8ed6 /source3/lib
parentbdc3e9acaf1b03af0e523f60b3260c6fdc62523c (diff)
downloadsamba-9910b8050ccb073fe47c26eeeeb60955d9f2d043.tar.gz
samba-9910b8050ccb073fe47c26eeeeb60955d9f2d043.tar.bz2
samba-9910b8050ccb073fe47c26eeeeb60955d9f2d043.zip
s3:lib/dbwrap add missing curly braces
violation of README.Coding Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index e55689cad5..f90e7b80f1 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -986,11 +986,13 @@ static bool db_ctdb_can_use_local_hdr(const struct ctdb_ltdb_header *hdr,
static bool db_ctdb_can_use_local_copy(TDB_DATA ctdb_data, bool read_only)
{
- if (ctdb_data.dptr == NULL)
+ if (ctdb_data.dptr == NULL) {
return false;
+ }
- if (ctdb_data.dsize < sizeof(struct ctdb_ltdb_header))
+ if (ctdb_data.dsize < sizeof(struct ctdb_ltdb_header)) {
return false;
+ }
return db_ctdb_can_use_local_hdr(
(struct ctdb_ltdb_header *)ctdb_data.dptr, read_only);