From 9910b8050ccb073fe47c26eeeeb60955d9f2d043 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Tue, 14 May 2013 21:02:15 +0200 Subject: [PATCH] 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(-) 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); -- 2.11.4.GIT