From 9910b8050ccb073fe47c26eeeeb60955d9f2d043 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Tue, 14 May 2013 21:02:15 +0200 Subject: s3:lib/dbwrap add missing curly braces violation of README.Coding Signed-off-by: Christian Ambach Reviewed-by: Andrew Bartlett --- source3/lib/dbwrap/dbwrap_ctdb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') 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); -- cgit