s4:samdb: Fix building Samba with -O3
commit9850c58ceda53f5beefbd49d2cd4f02ef6bbce59
authorAndreas Schneider <asn@samba.org>
Wed, 9 Aug 2017 05:45:04 +0000 (9 07:45 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Aug 2017 09:04:14 +0000 (28 11:04 +0200)
treed02598b3bbb508e3bde03e9ad20bd902bd8a66af
parent54ab11d16f21d4bb3ae3a62a86597ebaade0ae09
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>
(cherry picked from commit b5283c70e3924730b567772105ec6056831a6b53)
source4/dsdb/samdb/ldb_modules/vlv_pagination.c