diff options
author | Christian Ambach <ambi@samba.org> | 2013-05-14 21:02:15 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-05-16 23:22:19 +0200 |
commit | 9910b8050ccb073fe47c26eeeeb60955d9f2d043 (patch) | |
tree | 50ca2fcd262992d4d7d7d44045592c24d29b8ed6 /source3 | |
parent | bdc3e9acaf1b03af0e523f60b3260c6fdc62523c (diff) | |
download | samba-9910b8050ccb073fe47c26eeeeb60955d9f2d043.tar.gz |
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')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_ctdb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index e55689cad56..f90e7b80f1e 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); |