mirror of
https://github.com/samba-team/samba.git
synced 2025-11-15 16:23:49 +03:00
much cleaner handling of the different types of variables
This commit is contained in:
@@ -59,8 +59,15 @@ sub DumpElement($)
|
||||
$res .= "*";
|
||||
}
|
||||
}
|
||||
if (defined $element->{ARRAY_LEN} &&
|
||||
$element->{ARRAY_LEN} eq "*") {
|
||||
$res .= "*";
|
||||
}
|
||||
$res .= "$element->{NAME}";
|
||||
(defined $element->{ARRAY_LEN}) && ($res .= "[$element->{ARRAY_LEN}]");
|
||||
if (defined $element->{ARRAY_LEN} &&
|
||||
$element->{ARRAY_LEN} ne "*") {
|
||||
$res .= "[$element->{ARRAY_LEN}]";
|
||||
}
|
||||
$res .= ";\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user