mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:43:32 +03:00
checksrc: fix the return() checker
It would previously wrongly also catch function calls to function names ending with 'return' Amended test1185. Reported-by: Stefan Eissing Closes #15764
This commit is contained in:
parent
f2adb3b6d7
commit
54c5cb8b7f
2 changed files with 5 additions and 5 deletions
|
|
@ -714,7 +714,7 @@ sub scanfile {
|
|||
}
|
||||
|
||||
# check for "return(" without space
|
||||
if($l =~ /^(.*)return\(/) {
|
||||
if($l =~ /^(.*\W)return\(/) {
|
||||
if($1 =~ / *\#/) {
|
||||
# this is a #if, treat it differently
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue