mirror of
https://github.com/curl/curl.git
synced 2026-08-14 20:53:53 +03:00
tidy-up: replace (1 != expressions 2
This commit is contained in:
parent
3b75d69dbb
commit
4034bc7ebf
4 changed files with 7 additions and 7 deletions
|
|
@ -155,7 +155,7 @@ static struct ip *ip_list_append(struct ip *list, const char *data)
|
|||
ip->maskbits = 128;
|
||||
#endif
|
||||
|
||||
if(1 != inet_pton(ip->family, ip->str, &ip->netaddr)) {
|
||||
if(inet_pton(ip->family, ip->str, &ip->netaddr) != 1) {
|
||||
free(ip->str);
|
||||
free(ip);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue