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

util: Set errno to 0 before strtol/stroul call #2031

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

igaw
Copy link
Collaborator

@igaw igaw commented Aug 11, 2023

In order to be able to distinguish between success/failure case when calling strtol/stroul we set errno explicitly to 0.

Fixes: #2030

In order to be able to distinguish between success/failure case when
calling strtol/stroul we set errno explicitly to 0.

Signed-off-by: Daniel Wagner <[email protected]>
@igaw igaw changed the title util: Ser errno to 0 before strtol/stroul call util: Set errno to 0 before strtol/stroul call Aug 11, 2023
@igaw igaw merged commit 0eda7a6 into linux-nvme:master Aug 11, 2023
11 checks passed
@igaw igaw deleted the set-errno branch August 11, 2023 12:40
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.

Error message when arguments are correct
1 participant