pidl: don't expect to have quote when creating import headers
authorMatthieu Patou <mat@matws.net>
Tue, 2 Aug 2011 07:50:32 +0000 (11:50 +0400)
committerMatthieu Patou <mat@matws.net>
Fri, 5 Aug 2011 21:33:06 +0000 (01:33 +0400)
Currently the $_ didn't contains the quote anymore, in order to avoid
any further regression the cleanup of quote is done before so that if
$_ still have quotes we clean them in anycase.

pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 64b8dcf18cc6e3be45c2418c3fd39e4edce1f971..83fc3cd3bf7b73a38421b1992dd7c36c5ed93faf 100644 (file)
@@ -770,8 +770,8 @@ sub ProcessImport
        my @imports = @_;
        foreach (@imports) {
                next if($_ eq "security");
-               s/\.idl\"$//;
                s/^\"//;
+               s/\.idl"?$//;
                $self->pidl_hdr("#include \"packet-dcerpc-$_\.h\"");
        }
        $self->pidl_hdr("");