From: Volker Lendecke Date: Fri, 3 Aug 2018 10:44:31 +0000 (+0200) Subject: mdssvc: Move a variable declaration closer to its use X-Git-Tag: tdb-1.3.17~1616 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98cf04c7d140a015fdd4d9cc5d90eb445bd9c58c;p=thirdparty%2Fsamba.git mdssvc: Move a variable declaration closer to its use Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/rpc_server/mdssvc/marshalling.c b/source3/rpc_server/mdssvc/marshalling.c index 562afa6c974..af059545759 100644 --- a/source3/rpc_server/mdssvc/marshalling.c +++ b/source3/rpc_server/mdssvc/marshalling.c @@ -1058,9 +1058,10 @@ static ssize_t sl_unpack_loop(DALLOC_CTX *query, int i, toc_index, subcount; uint64_t result; sl_nil_t nil; - struct sl_tag tag; while (count > 0) { + struct sl_tag tag; + if (offset >= toc_offset) { return -1; }