mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
token: Avoid warnings with extraneous parentheses
The FreeBSD builder complains like this:
/home/gitlab-runner/builds/jtxr_hfi/0/jjelen/libssh-mirror/src/token.c:438:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((list == NULL)) {
~~~~~^~~~~~~
/home/gitlab-runner/builds/jtxr_hfi/0/jjelen/libssh-mirror/src/token.c:438:15: note: remove extraneous parentheses around the comparison to silence this warning
if ((list == NULL)) {
~ ^ ~
/home/gitlab-runner/builds/jtxr_hfi/0/jjelen/libssh-mirror/src/token.c:438:15: note: use '=' to turn this equality comparison into an assignment
if ((list == NULL)) {
^~
=
1 warning generated.
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
@@ -435,7 +435,7 @@ char *ssh_remove_all_matching(const char *list,
|
||||
size_t len, pos = 0;
|
||||
bool exclude;
|
||||
|
||||
if ((list == NULL)) {
|
||||
if (list == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
if (remove_list == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user