Skip to content

Conversation

@mykola-mokhnach
Copy link

WebDriverAgent/WebDriverAgentLib/Vendor/CocoaAsyncSocket/GCDAsyncUdpSocket.m:3039:26: warning: The 2nd argument to 'bind' is NULL but should not be NULL [unix.StdCLibraryFunctions]
 3039 |             int status = bind(self->socket6FD, (const struct sockaddr *)[localAddr6 bytes], (socklen_t)[localAddr6 length]);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Copy link

@DanMPerfecto DanMPerfecto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unable to test it at the moment, but the logic looks good to me.

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

Comment on lines 3174 to 3176
self->flags |= kConnecting;

[self->sendQueue addObject:packet];
[self->sendQueue addObject:packet];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe... these might need more spaces....? I guess this file has mixed with tabs/spaces...?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to completely reformat the whole file in Xcode, but not in the same PR

@mykola-mokhnach mykola-mokhnach merged commit 263e646 into master Dec 18, 2025
46 of 47 checks passed
@mykola-mokhnach mykola-mokhnach deleted the comp262 branch December 18, 2025 16:56
github-actions bot pushed a commit that referenced this pull request Dec 18, 2025
## [10.5.2](v10.5.1...v10.5.2) (2025-12-18)

### Bug Fixes

* Address possible NULL binding compiler warning ([#1091](#1091)) ([263e646](263e646))
@github-actions
Copy link

🎉 This PR is included in version 10.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants