r9984: Honour the NOEMIT conformance directive for entire IDL files.
[jelmer/samba4-debian.git] / source / pidl / pidl
index a8631043b2cf04ae4f1e8a1bfd6d73a58a41fff6..c68ea6c1213389acf6d284edab8a9528bd74258b 100755 (executable)
@@ -326,8 +326,8 @@ $dcom
          $cnffile =~ s/\.idl$/\.cnf/;
 
          my ($dp, $dh) = Parse::Pidl::Ethereal::NDR::Parse($ndr, $idl_file, $eheader, $cnffile);
-         FileSave($eparser, $dp);
-         FileSave($eheader, $dh);
+         FileSave($eparser, $dp) if defined($dp);
+         FileSave($eheader, $dh) if defined($dh);
        }
 
        my $tdr_parser = ($opt_tdr_parser or "$outputdir/tdr_$basename.c");