summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/checksrc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/checksrc.pl')
-rw-r--r--libs/libcurl/src/checksrc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libcurl/src/checksrc.pl b/libs/libcurl/src/checksrc.pl
index 8f98a99ab5..eea1126d1c 100644
--- a/libs/libcurl/src/checksrc.pl
+++ b/libs/libcurl/src/checksrc.pl
@@ -502,7 +502,7 @@ sub scanfile {
}
# check for '== NULL' in if/while conditions but not if the thing on
# the left of it is a function call
- if($nostr =~ /^(.*)(if|while)(\(.*[^)]) == NULL/) {
+ if($nostr =~ /^(.*)(if|while)(\(.*?)([!=]= NULL|NULL [!=]=)/) {
checkwarn("EQUALSNULL", $line,
length($1) + length($2) + length($3),
$file, $l, "we prefer !variable instead of \"== NULL\" comparisons");