summaryrefslogtreecommitdiff
path: root/source4/build/pidl/dump.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/dump.pm')
-rw-r--r--source4/build/pidl/dump.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/build/pidl/dump.pm b/source4/build/pidl/dump.pm
index d895863536..cf5ec37bda 100644
--- a/source4/build/pidl/dump.pm
+++ b/source4/build/pidl/dump.pm
@@ -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;
}