mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
mdssvc: Move a variable declaration closer to its use
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Sep 14 10:48:47 CEST 2018 on sn-devel-144
This commit is contained in:
parent
98cf04c7d1
commit
f8df3f3499
@ -1057,7 +1057,6 @@ static ssize_t sl_unpack_loop(DALLOC_CTX *query,
|
||||
{
|
||||
int i, toc_index, subcount;
|
||||
uint64_t result;
|
||||
sl_nil_t nil;
|
||||
|
||||
while (count > 0) {
|
||||
struct sl_tag tag;
|
||||
@ -1106,12 +1105,13 @@ static ssize_t sl_unpack_loop(DALLOC_CTX *query,
|
||||
break;
|
||||
}
|
||||
|
||||
case SQ_TYPE_NULL:
|
||||
case SQ_TYPE_NULL: {
|
||||
sl_nil_t nil = 0;
|
||||
|
||||
subcount = tag.count;
|
||||
if (subcount > count) {
|
||||
return -1;
|
||||
}
|
||||
nil = 0;
|
||||
for (i = 0; i < subcount; i++) {
|
||||
result = dalloc_add_copy(query, &nil, sl_nil_t);
|
||||
if (result != 0) {
|
||||
@ -1121,6 +1121,7 @@ static ssize_t sl_unpack_loop(DALLOC_CTX *query,
|
||||
offset += tag.size;
|
||||
count -= subcount;
|
||||
break;
|
||||
}
|
||||
|
||||
case SQ_TYPE_BOOL: {
|
||||
sl_bool_t b = (tag.count != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user