mirror of
https://github.com/samba-team/samba.git
synced 2025-05-28 21:05:48 +03:00
r756: Handle default element in union.
(This used to be commit 1ece224c9a25731a8c392cf378968273c0072ecf)
This commit is contained in:
parent
b340a61cb9
commit
67638baabb
@ -85,9 +85,13 @@ sub DumpUnionElement($)
|
||||
my($element) = shift;
|
||||
my($res);
|
||||
|
||||
$res .= "[case($element->{CASE})] ";
|
||||
$res .= DumpElement($element->{DATA});
|
||||
$res .= ";\n";
|
||||
if ($element->{CASE} eq "default") {
|
||||
$res .= "[default] ;\n";
|
||||
} else {
|
||||
$res .= "[case($element->{CASE})] ";
|
||||
$res .= DumpElement($element->{DATA});
|
||||
$res .= ";\n";
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user