samdb: Fix build error with gcc8
commitce0b0908b7753d6daf5162c9694f9c96bc8b563d
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jun 2018 08:24:06 +0000 (18 10:24 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 27 Jun 2018 08:34:22 +0000 (27 10:34 +0200)
treedc0e8fb5e8573d1e47ce67b9d6a3d2b329e776b5
parentbc6a07241d30118589dd61d061a3a4498d0a6757
samdb: Fix build error with gcc8

../source4/dsdb/samdb/ldb_modules/samldb.c: In function ‘samldb_add’:
../source4/dsdb/samdb/ldb_modules/samldb.c:424:6: error: ‘found’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (found) {
      ^
../source4/dsdb/samdb/ldb_modules/samldb.c:348:11: note: ‘found’ was declared here
  bool ok, found;
           ^~~~~

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 76828876faa3cd463023e323983df0be597c7361)
source4/dsdb/samdb/ldb_modules/samldb.c