From: Noel Power Date: Fri, 5 Jul 2019 11:04:10 +0000 (+0000) Subject: s4/dsdb/common: clang: Fix 'The left operand of '&' is a garbage value' X-Git-Tag: tdb-1.4.2~508 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd86df913b14070e157b6a9178438f71321c8872;p=thirdparty%2Fsamba.git s4/dsdb/common: clang: Fix 'The left operand of '&' is a garbage value' Fixes: source4/dsdb/common/util.c:1964:18: warning: The left operand of '&' is a garbage value <--[clang] return (options & DS_NTDSDSA_OPT_IS_GC) != 0; ~~~~~~~ ^ Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 0e9945e98c6..7e6b5b490d1 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1957,7 +1957,7 @@ bool samdb_is_pdc(struct ldb_context *ldb) */ bool samdb_is_gc(struct ldb_context *ldb) { - uint32_t options; + uint32_t options = 0; if (samdb_ntds_options(ldb, &options) != LDB_SUCCESS) { return false; }