s4:samdb: Fix building Samba with -O3
authorAndreas Schneider <asn@samba.org>
Wed, 9 Aug 2017 05:45:04 +0000 (07:45 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 9 Aug 2017 07:49:08 +0000 (09:49 +0200)
commitb5283c70e3924730b567772105ec6056831a6b53
tree6a55097b366a91480d0b7bfc616bdd9fda4de88e
parent62d73f5b936550d623ef4f31c7438ac3c90105b9
s4:samdb: Fix building Samba with -O3

gcc error: â€˜result’ may be used uninitialized

This wont happen, because ldb will return and error, but the compiler
doesn't understand this.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/dsdb/samdb/ldb_modules/vlv_pagination.c