-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #323 - checks time pointers for NULL.
Prevents crashes due to dereferencing NULL time pointers. Passing in NULL for a `time` pointer will no longer cause a crash in an Astronomy Engine function. Wherever possible, a NULL time pointer will result in a status code `ASTRO_INVALID_PARAMETER`. `Astronomy_Horizon` has no way to report a status code, so a null pointer causes it to return all NAN values. Perhaps it should return a status code (considering for separate commit). Thanks to [Steven Booth](https://github.com/sbooth) for suggesting this!
- Loading branch information
1 parent
04a575c
commit 1d19e21
Showing
3 changed files
with
247 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.