mdssvc: Move a variable declaration closer to its use
[samba.git] / source3 / rpc_server / mdssvc / marshalling.c
index 562afa6c9740434a5f48bfaf4dc25e2003cc1fa7..af059545759705075c0b8c7fda0534a603c8d139 100644 (file)
@@ -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;
                }