mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:23:31 +03:00
tidy-up: make conditional checks more consistent
... remove '== NULL' and '!= 0' Closes #6912
This commit is contained in:
parent
19ea52da4d
commit
063d3f3b96
85 changed files with 282 additions and 283 deletions
|
|
@ -388,7 +388,7 @@ static CURLcode wssh_connect(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
sshc->ssh_session = wolfSSH_new(sshc->ctx);
|
||||
if(sshc->ssh_session == NULL) {
|
||||
if(!sshc->ssh_session) {
|
||||
failf(data, "No wolfSSH session");
|
||||
goto error;
|
||||
}
|
||||
|
|
@ -861,7 +861,7 @@ static CURLcode wssh_statemach_act(struct Curl_easy *data, bool *block)
|
|||
char *line = aprintf("%s\n",
|
||||
data->set.list_only ?
|
||||
name->fName : name->lName);
|
||||
if(line == NULL) {
|
||||
if(!line) {
|
||||
state(data, SSH_SFTP_CLOSE);
|
||||
sshc->actualcode = CURLE_OUT_OF_MEMORY;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue