Skip to content

Fixes #13962: fi can be nullptr #7623

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

Merged
merged 2 commits into from
Jun 30, 2025
Merged

Conversation

autoantwort
Copy link
Contributor

No description provided.

@danmar
Copy link
Owner

danmar commented Jun 29, 2025

Thanks for the fix.

A test would be really nice though. Do you see this when checking a proprietary project or some open source project?

@autoantwort
Copy link
Contributor Author

A proprietary project

@danmar danmar merged commit 06b490f into danmar:main Jun 30, 2025
53 checks passed
@danmar
Copy link
Owner

danmar commented Jun 30, 2025

ok :-(
I don't remember if it's by intention that fi can be nullptr maybe it was a bug.. but at least now there won't be a crash.

winterz pushed a commit to winterz/cppcheck that referenced this pull request Jun 30, 2025
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