mirror of
https://github.com/curl/curl.git
synced 2026-07-25 14:37:17 +03:00
Revert "checksrc: fix regexp for ASSIGNWITHINCONDITION"
This reverts commit ba82673dac.
Bug: #4683
This commit is contained in:
parent
3ab45a9876
commit
31e637d224
2 changed files with 2 additions and 1 deletions
|
|
@ -457,7 +457,7 @@ sub scanfile {
|
|||
}
|
||||
}
|
||||
|
||||
if($nostr =~ /^((.*)(if) *\()(.*)\) [{\n]/) {
|
||||
if($nostr =~ /^((.*)(if) *\()(.*)\)/) {
|
||||
my $pos = length($1);
|
||||
if($4 =~ / = /) {
|
||||
checkwarn("ASSIGNWITHINCONDITION",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue