samdb: Fix build error with gcc8
[sfrench/samba-autobuild/.git] / source4 / dsdb / samdb / ldb_modules / samldb.c
index da11ee2180c7d17753b4091e977e8494e047e757..a7995e31cc189520ee2bf6eb0e539ea09f4fbe03 100644 (file)
@@ -345,7 +345,7 @@ static int samldb_generate_next_linkid(struct samldb_ctx *ac,
 static int samldb_schema_add_handle_linkid(struct samldb_ctx *ac)
 {
        int ret;
-       bool ok, found;
+       bool ok, found = false;
        struct ldb_message_element *el;
        const char *enc_str;
        const struct dsdb_attribute *attr;