summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-12-16 08:34:14 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-12-16 08:34:14 +0100
commit526fb89259e944eab7efad71d66f26a026b38a72 (patch)
treec8d2caec9eadcefd9c926571bea60bfcd1471aa9 /lib
parentb0a9e3c28c3c6bac8e201fcf327de5ba26a92a38 (diff)
downloadcurl-526fb89259e944eab7efad71d66f26a026b38a72.tar.gz
Revert "checksrc: fix regexp for ASSIGNWITHINCONDITION"
This reverts commit ba82673dac3e8d00a76aa5e3779a0cb80e7442af.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/checksrc.pl2
-rw-r--r--lib/vssh/libssh.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index db9a45dff..834364561 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -457,7 +457,7 @@ sub scanfile {
}
}
- if($nostr =~ /^((.*)(if) *\()(.*)\) [{\n]/) {
+ if($nostr =~ /^((.*)(if) *\()(.*)\)/) {
my $pos = length($1);
if($4 =~ / = /) {
checkwarn("ASSIGNWITHINCONDITION",
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index 070879d94..cad8b3786 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -97,6 +97,7 @@
/* A recent macro provided by libssh. Or make our own. */
#ifndef SSH_STRING_FREE_CHAR
+/* !checksrc! disable ASSIGNWITHINCONDITION 1 */
#define SSH_STRING_FREE_CHAR(x) \
do { if((x) != NULL) { ssh_string_free_char(x); x = NULL; } } while(0)
#endif