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

Fixed extension check logic in startrails.cpp #729

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

linuxkidd
Copy link
Collaborator

@linuxkidd linuxkidd commented Oct 25, 2021

The logic for checking file extension is incorrectly using logical OR vs logical AND.

Thanks to @jpaana spotting this issue in PR #723

extcheck.rfind(".png") == string::npos string::npos is only returned if no match is found. Thus, to check that neither png nor jpg is found, the logical operator must be AND.

resolve #728

@linuxkidd linuxkidd added the bug Needs software change label Oct 25, 2021
@linuxkidd linuxkidd changed the title Fixed extension check logic Fixed extension check logic in startrails.cpp Oct 25, 2021
@ckuethe ckuethe merged commit 9b89751 into AllskyTeam:master Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs software change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

i don't understand this error message in startrails.cpp
2 participants