Skip to content

asyn-: remove redundant NULL check #17720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

DCNick3
Copy link
Contributor

@DCNick3 DCNick3 commented Jun 23, 2025

When the code was originally written, entry = NULL was supported. However, after 59e351a this check has became redundant. It will never succeed because the *entry = NULL; statement at the start of the function will segfault earlier.

@github-actions github-actions bot added the name lookup DNS and related tech label Jun 23, 2025
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

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

Nice catch!

@DCNick3
Copy link
Contributor Author

DCNick3 commented Jun 23, 2025

I am pretty sure the test failure is unrelated to the change.

@bagder
Copy link
Member

bagder commented Jun 23, 2025

I am pretty sure the test failure is unrelated to the change.

Yes, I agree.

@bagder bagder closed this in 05382f3 Jun 23, 2025
@bagder
Copy link
Member

bagder commented Jun 23, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
name lookup DNS and related tech
Development

Successfully merging this pull request may close these issues.

2 participants