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

fix: ensure "no conversion" result is checked correctly #146

Merged

Conversation

CoelacanthusHex
Copy link
Contributor

Although POSIX said user should check errno instead of return value,
but errno may not be set when no conversion is performed according to C99.
Check nptr is same as str_end to ensure there is no conversion.

Signed-off-by: Celeste Liu [email protected]

Although POSIX said user should check errno instead of return value,
but errno may not be set when no conversion is performed according to C99.
Check nptr is same as str_end to ensure there is no conversion.

Signed-off-by: Celeste Liu <[email protected]>
@estkme estkme merged commit 0499a3a into estkme-group:main Aug 20, 2024
6 checks passed
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.

3 participants