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

Move SAI initialized check so it isn't a no-op #589

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

schult
Copy link
Contributor

@schult schult commented Aug 14, 2023

The current check for an uninitialized SaiHandle during DeInit is a no-op: &config_ will never be null. This change moves the init check out of the Impl class so that the pimpl_ pointer itself can be examined, allowing the check to work as intended. This also fixes a compiler warning about &config_ never being equal to nullptr.

@beserge
Copy link
Contributor

beserge commented Feb 21, 2024

Nice catch! Thanks for your contribution, works great!

@beserge beserge merged commit 5aeb2c2 into electro-smith:master Feb 21, 2024
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