summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-21 22:49:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-22 08:31:42 +0100
commitb07735c0e9da777e3e29614907c1038c7b191c39 (patch)
treef5889c297e4f8d8fba47490bc87c071a8e87eed8
parenta0962a6417f17f27fb197ae237cc65811627d7c5 (diff)
downloadcurl-bagder/badsymbols-hash.tar.gz
tests/badsymbols.pl: ignore stand-alone single hash linesbagder/badsymbols-hash
Bug: https://curl.se/mail/lib-2020-12/0084.html Reported-by: Dennis Clarke Assisted-by: Jay Satiro
-rwxr-xr-xtests/badsymbols.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/badsymbols.pl b/tests/badsymbols.pl
index bad037975..d9766cad7 100755
--- a/tests/badsymbols.pl
+++ b/tests/badsymbols.pl
@@ -90,6 +90,9 @@ sub scanenums {
if($skipit) {
next;
}
+ if (/^#/) {
+ next;
+ }
if ( /enum\s+(\S+\s+)?{/ .. /}/ ) {
s/^\s+//;
chomp;