samdb: Fix build error with gcc8
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jun 2018 08:24:06 +0000 (10:24 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 20 Jun 2018 20:22:07 +0000 (22:22 +0200)
commit76828876faa3cd463023e323983df0be597c7361
tree152a1a8c27e4aa301ec9777ea61b63d7bbc12880
parentbca97cc4738fb4461fd27b6df9556f3e1377519d
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>
source4/dsdb/samdb/ldb_modules/samldb.c