Skip to content

asyn-: remove redundant NULL check#17720

Closed
DCNick3 wants to merge 1 commit intocurl:masterfrom
DCNick3:remove-redundant-null-check
Closed

asyn-: remove redundant NULL check#17720
DCNick3 wants to merge 1 commit intocurl:masterfrom
DCNick3:remove-redundant-null-check

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