[Github-comments] [geany/geany] Fix derefence of NULL pointer (PR #2963)

elextr notifications at xxxxx
Wed Oct 27 23:39:13 UTC 2021


Since its tested a billion [exaggeration for effect] times a few more won't hurt.  The pointer is/should be set to a valid value at document creation and all the tests removed, but since this is C not C++ the invariant can't be guaranteed against accidental/deliberate violation.  [end rant, ducks missile from @b4n] :smile:

In both cases I would have put the tests at the end of the block above which also tests for `ft == NULL` since it will only be null if that block fails.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2963#issuecomment-953386990
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211027/c8c0eb0b/attachment.htm>


More information about the Github-comments mailing list