mirror of
https://github.com/curl/curl.git
synced 2026-07-11 13:17:16 +03:00
checksrc: warn for assignments within if() expressions
... they're already frowned upon in our source code style guide, this now enforces the rule harder.
This commit is contained in:
parent
b228d2952b
commit
1c3e8bbfed
86 changed files with 413 additions and 226 deletions
|
|
@ -757,7 +757,11 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
case '@': /* the URL! */
|
||||
{
|
||||
struct getout *url;
|
||||
if(config->url_get || ((config->url_get = config->url_list) != NULL)) {
|
||||
|
||||
if(!config->url_get)
|
||||
config->url_get = config->url_list;
|
||||
|
||||
if(config->url_get) {
|
||||
/* there's a node here, if it already is filled-in continue to find
|
||||
an "empty" node */
|
||||
while(config->url_get && (config->url_get->flags & GETOUT_URL))
|
||||
|
|
@ -1687,7 +1691,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
/* output file */
|
||||
{
|
||||
struct getout *url;
|
||||
if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
|
||||
if(!config->url_out)
|
||||
config->url_out = config->url_list;
|
||||
if(config->url_out) {
|
||||
/* there's a node here, if it already is filled-in continue to find
|
||||
an "empty" node */
|
||||
while(config->url_out && (config->url_out->flags & GETOUT_OUTFILE))
|
||||
|
|
@ -1824,7 +1830,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
/* we are uploading */
|
||||
{
|
||||
struct getout *url;
|
||||
if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
|
||||
if(!config->url_out)
|
||||
config->url_out = config->url_list;
|
||||
if(config->url_out) {
|
||||
/* there's a node here, if it already is filled-in continue to find
|
||||
an "empty" node */
|
||||
while(config->url_out && (config->url_out->flags & GETOUT_UPLOAD))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue