From: Pascal Quantin Date: Wed, 4 Apr 2018 17:51:53 +0000 (+0200) Subject: extract_asn1_from_spec.pl: fix parsing of END tag X-Git-Url: http://git.samba.org/?p=metze%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=5a9d0caa1113e8723d66c1d8f4eec4273590fec4 extract_asn1_from_spec.pl: fix parsing of END tag Change-Id: I2eb73f74b456ffb5a9bae50e78f7edb4204912e0 Reviewed-on: https://code.wireshark.org/review/26740 Reviewed-by: Pascal Quantin --- diff --git a/tools/extract_asn1_from_spec.pl b/tools/extract_asn1_from_spec.pl index 5a166365df..8c69b55f6c 100755 --- a/tools/extract_asn1_from_spec.pl +++ b/tools/extract_asn1_from_spec.pl @@ -73,7 +73,7 @@ sub extract_asn1 { $file_name_found = 1; } - if (($line =~ /END/) && (defined fileno OUTPUT_FILE)){ + if (($line =~ /^END/) && (defined fileno OUTPUT_FILE)){ syswrite OUTPUT_FILE,"$line"; close(OUTPUT_FILE); $is_asn1 = 0;