Skip to content
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

[ares_getenv] Return NULL in all cases. #279

Merged
merged 1 commit into from
Oct 14, 2019
Merged

[ares_getenv] Return NULL in all cases. #279

merged 1 commit into from
Oct 14, 2019

Conversation

egorpugin
Copy link
Contributor

@egorpugin egorpugin commented Oct 13, 2019

In my tricky example HAVE_GETENV check did not work, so I got ares_getenv() call on linux, but there's no return value.
And I get trash and crashes further.

This PR removes _WIN32_WCE ifdef, so all platforms return NULL here.

@bradh352 bradh352 merged commit a4d7a5b into c-ares:master Oct 14, 2019
@egorpugin egorpugin deleted the patch-1 branch October 14, 2019 17:08
DronRathore pushed a commit to DronRathore/c-ares that referenced this pull request Mar 11, 2020
if ares_getenv is defined, it must return a value on all platforms.

Fix By: Egor Pugin (@egorpugin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants