From 34ff1c6944a56365390b252f516b6d3aafc8ac50 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 13 Apr 2010 15:40:43 +0200 Subject: s4:samdb_server_site_name - fix indentation --- source4/dsdb/common/util.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index d36e1ec1bb..66a0b0f87d 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1545,12 +1545,14 @@ int samdb_rid_set_dn(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_dn const char *samdb_server_site_name(struct ldb_context *ldb, TALLOC_CTX *mem_ctx) { - const struct ldb_val *val = ldb_dn_get_rdn_val(samdb_server_site_dn(ldb, mem_ctx)); + const struct ldb_val *val = ldb_dn_get_rdn_val(samdb_server_site_dn(ldb, + mem_ctx)); - if (val != NULL) - return (const char *) val->data; - else + if (val == NULL) { return NULL; + } + + return (const char *) val->data; } /* -- cgit